Use a base image with server for the serve container image
/ build_website (push) Successful in 10s Details
/ build_and_push_container (push) Successful in 6s Details

This commit is contained in:
Michał Rudowicz 2025-02-23 19:59:31 +01:00
parent 462d158211
commit 7667cf9792
2 changed files with 10 additions and 9 deletions

View File

@ -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"]

View File

@ -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"]