mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
added whole content
This commit is contained in:
parent
1b5df685cb
commit
8b25e0631a
70 changed files with 5962 additions and 19 deletions
15
content/Docker/Building static pages with Docker.md
Normal file
15
content/Docker/Building static pages with Docker.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
Sample #Dockerfile for static Typescript builds such a #nextjs, #gatsby or #nuxt:
|
||||
|
||||
```Dockerfile
|
||||
FROM node:16-alpine as builder
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
COPY . .
|
||||
|
||||
# your generate command here
|
||||
RUN yarn generate
|
||||
|
||||
FROM nginx
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue