This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM busybox:1.36
|
||||
|
||||
# Create a non-root user to own the files and run our server
|
||||
RUN adduser -D web
|
||||
USER web
|
||||
WORKDIR /home/web
|
||||
|
||||
# Copy the static website
|
||||
COPY src/* .
|
||||
|
||||
# Run BusyBox httpd
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT [ "busybox", "httpd", "-f", "-v" ]
|
||||
CMD ["-p", "8080"]
|
||||
Reference in New Issue
Block a user