update dockerfile in readme
parent
77475ec7e1
commit
3e797fa3c5
|
@ -31,12 +31,12 @@ The site can also be built and ran inside a docker container when you are in the
|
||||||
## Dockerfile
|
## Dockerfile
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM node:10-alpine3.9 as npmpackages
|
FROM node:18-alpine3.15 as npmpackages
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
FROM node:10-alpine3.9 as builder
|
FROM node:18-alpine3.15 as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=npmpackages /app /app
|
COPY --from=npmpackages /app /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -45,6 +45,7 @@ RUN npm run build
|
||||||
FROM nginx:1.17.10-alpine
|
FROM nginx:1.17.10-alpine
|
||||||
RUN rm -r /usr/share/nginx/html/
|
RUN rm -r /usr/share/nginx/html/
|
||||||
COPY --from=builder /app/_site/ /usr/share/nginx/html/
|
COPY --from=builder /app/_site/ /usr/share/nginx/html/
|
||||||
|
|
||||||
```
|
```
|
||||||
### Ouroboros
|
### Ouroboros
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue