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 24, 2022
1 parent d35ab40 commit 93e6ec7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
```
```bash
docker run --name awesome-mac --rm -d -p 9881:80 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
docker run --name awesome-mac --rm -d -p 9881:3000 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
# Or
docker run --name awesome-mac -itd -p 9881:80 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
docker run --name awesome-mac -itd -p 9881:3000 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
```
Visit the following URL in your browser
Expand Down
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 93e6ec7

Please sign in to comment.