Dockerfile

This commit is contained in:
fechin committed 2022-12-24 11:38:34 +08:00
1 parent eed8e75da8
commit 91774c91eb
1 file changed
+2 -18
+2 -18
View File
@@ -1,20 +1,4 @@
FROM alpine:latest
FROM lipanski/docker-static-website:latest
# Install thttpd
RUN apk update
RUN apk upgrade
RUN apk add --no-cache thttpd
# Create a non-root user to own the files and run our server
RUN adduser -D static
USER static
WORKDIR /home/static
# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
# Copy your static files
COPY public .
# Run thttpd
CMD ["thttpd", "-D", "-h", "0.0.0.0", "-p", "3000", "-d", "/home/static", "-u", "static", "-l", "-", "-M", "60"]
EXPOSE 3000