Skip to content

Commit 902d899

Browse files
committed
chore: update Dockerfile.
1 parent aeeca09 commit 902d899

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
FROM nginx:1-alpine
1+
# https://lipanski.com/posts/smallest-docker-image-static-website
2+
# https://github.com/lipanski/docker-static-website
3+
FROM lipanski/docker-static-website:latest
24

3-
ENV APPDIR /usr/share/nginx/html
4-
RUN mkdir -p $APPDIR
5-
6-
RUN cat /etc/nginx/conf.d/default.conf
7-
8-
WORKDIR $APPDIR
9-
10-
ADD ./.deploy /usr/share/nginx/html
5+
# Copy the static website
6+
# Use the .dockerignore file to control what ends up inside the image!
7+
COPY ./.deploy .

0 commit comments

Comments
 (0)