Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
praseodym committed Nov 15, 2021
1 parent ca00926 commit 4e061cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@

### Dockerfile for static files
```Dockerfile
FROM wisvch/nginx
FROM ghcr.io/wisvch/nginx
COPY . /srv/
```

### Dockerfile with multi-stage Node.js build
```Dockerfile
FROM node:carbon AS builder
FROM node:gallium AS builder
WORKDIR /src
COPY . .
RUN yarn
RUN yarn build

FROM wisvch/nginx
FROM ghcr.io/wisvch/nginx
COPY --from=builder /src/build/ /srv/
```

Expand All @@ -32,4 +32,4 @@ COPY --from=builder /src/build/ /srv/
docker build -t nginx .
docker run --rm -it -p 127.0.0.1:8080:8080 --tmpfs /tmp --read-only nginx
```
then open http://127.0.0.1:8080 in your browser.
then open http://127.0.0.1:8080 in your browser.

0 comments on commit 4e061cb

Please sign in to comment.