Skip to content

 This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.

chore: update Dockerfile

jaywcjlove93e6ec76fcf1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9cd886f1..bf9b855c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
diff --git a/Dockerfile b/Dockerfile
index 3fce24ab..b740ca1e 100644
--- a/Dockerfile
+++ b/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
-RUN mkdir -p $APPDIR
-
-RUN cat /etc/nginx/conf.d/default.conf
-
-WORKDIR $APPDIR
-
-ADD ./dist /usr/share/nginx/html
\ No newline at end of file
+# Copy the static website
+# Use the .dockerignore file to control what ends up inside the image!
+COPY ./dist .
\ No newline at end of file