some site updates
All checks were successful
ClarkeIS Build / Build-Docker-Image (push) Successful in 42s
All checks were successful
ClarkeIS Build / Build-Docker-Image (push) Successful in 42s
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user