chore: update Dockerfile.

This commit is contained in:
jaywcjlove 2022-06-24 13:11:09 +08:00
parent aeeca09649
commit 902d899dac
1 changed files with 6 additions and 9 deletions

View File

@ -1,10 +1,7 @@
FROM nginx:1-alpine
# https://lipanski.com/posts/smallest-docker-image-static-website
# https://github.com/lipanski/docker-static-website
FROM lipanski/docker-static-website:latest
ENV APPDIR /usr/share/nginx/html
RUN mkdir -p $APPDIR
RUN cat /etc/nginx/conf.d/default.conf
WORKDIR $APPDIR
ADD ./.deploy /usr/share/nginx/html
# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY ./.deploy .