Skip to content

Commit 88d721e

Browse files
committed
chore: Update Dockerfile.
1 parent abefe3a commit 88d721e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Dockerfile

+6-9
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 ./dist /usr/share/nginx/html
5+
# Copy the static website
6+
# Use the .dockerignore file to control what ends up inside the image!
7+
COPY ./dist .

0 commit comments

Comments
 (0)