Skip to content

Commit

Permalink
chore: Update Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 26, 2022
1 parent abefe3a commit 88d721e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./dist /usr/share/nginx/html
# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY ./dist .

0 comments on commit 88d721e

Please sign in to comment.