Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
src/tailwind.css
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
FROM node:lts-alpine AS builder

WORKDIR /build

COPY package*.json ./
RUN npm ci

COPY tailwind.config.js ./
COPY src/ ./src/
RUN npm run build

FROM busybox:latest

# Create a non-root user to own the files and run our server
Expand All @@ -7,7 +18,7 @@ WORKDIR /home/static

# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY /src/ .
COPY --from=builder /build/src/ .

# Run BusyBox httpd
CMD ["busybox", "httpd", "-f", "-v", "-p", "80"]
Loading