mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
Dockerfile
This commit is contained in:
1 parent
fee178149f
commit
fc2554994e
1 file changed
+17
-4
+17
-4
@@ -1,5 +1,18 @@
|
||||
# https://github.com/lipanski/docker-static-website
|
||||
FROM lipanski/docker-static-website:latest
|
||||
FROM alpine:latest
|
||||
|
||||
# Copy your static files
|
||||
COPY public .
|
||||
# Install thttpd
|
||||
RUN apk add 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 public .
|
||||
|
||||
# Run thttpd
|
||||
CMD ["thttpd", "-D", "-h", "0.0.0.0", "-p", "3000", "-d", "/home/static", "-u", "static", "-l", "-", "-M", "60"]
|
||||
|
||||
EXPOSE 3000
|
||||
Reference in new issue
Block a user