Use a base image with server for the serve container image
This commit is contained in:
parent
462d158211
commit
7667cf9792
|
@ -1,13 +1,5 @@
|
|||
FROM busybox:stable
|
||||
|
||||
# Create a non-root user to own the files and run our server
|
||||
RUN adduser -D static
|
||||
USER static
|
||||
WORKDIR /home/static
|
||||
FROM git.hswro.org/fleg/serve_base:latest
|
||||
|
||||
# Copy the static website
|
||||
# Use the .dockerignore file to control what ends up inside the image!
|
||||
COPY . .
|
||||
|
||||
# Run BusyBox httpd
|
||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
FROM busybox:stable
|
||||
|
||||
# Create a non-root user to own the files and run our server
|
||||
RUN adduser -D static
|
||||
USER static
|
||||
WORKDIR /home/static
|
||||
|
||||
# Run BusyBox httpd
|
||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
Loading…
Reference in New Issue