We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abefe3a commit 88d721eCopy full SHA for 88d721e
Dockerfile
@@ -1,10 +1,7 @@
1
-FROM nginx:1-alpine
+# https://lipanski.com/posts/smallest-docker-image-static-website
2
+# https://github.com/lipanski/docker-static-website
3
+FROM lipanski/docker-static-website:latest
4
-ENV APPDIR /usr/share/nginx/html
-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
+# Copy the static website
+# Use the .dockerignore file to control what ends up inside the image!
+COPY ./dist .
0 commit comments