biiiig change [now we're a sitix project]
All checks were successful
Build / Build-Docker-Image (push) Successful in 37s

This commit is contained in:
2025-03-11 16:35:53 -04:00
parent 9e84f725c3
commit 81608a95f8
85 changed files with 327 additions and 16 deletions

View File

@@ -1,12 +1,24 @@
FROM swaous.asuscomm.com/sitix:latest AS build
# build the site
RUN mkdir site
COPY site site
RUN ls site
ARG SITIX_ENVIRONMENT="production"
RUN /sitix site -y -c ${SITIX_ENVIRONMENT}
FROM busybox:1.35
# Create a non-root user to own the files and run our server
RUN mkdir /static
WORKDIR /static
# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY . .
COPY --from=build /output /output
WORKDIR output
# Run BusyBox httpd
CMD ["busybox", "httpd", "-f", "-v", "-p", "80"]