mirror of
https://github.com/jaywcjlove/awesome-mac.git
synced 2026-01-12 15:05:28 +08:00
chore: update Dockerfile
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -67,9 +67,9 @@ jobs:
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```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
|
# 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
|
Visit the following URL in your browser
|
||||||
|
|||||||
15
Dockerfile
15
Dockerfile
@@ -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
|
# Copy the static website
|
||||||
RUN mkdir -p $APPDIR
|
# Use the .dockerignore file to control what ends up inside the image!
|
||||||
|
COPY ./dist .
|
||||||
RUN cat /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
WORKDIR $APPDIR
|
|
||||||
|
|
||||||
ADD ./dist /usr/share/nginx/html
|
|
||||||
Reference in New Issue
Block a user