mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 23:19:06 +00:00
commit
619ab7b3ce
2 changed files with 25 additions and 0 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
markdown
|
||||
node_modules
|
||||
.git
|
||||
.gitignore
|
||||
build
|
||||
README.md
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM node:15.12.0-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY scripts/ ./scripts
|
||||
COPY package-lock.json .
|
||||
COPY package.json .
|
||||
|
||||
RUN npm i
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
RUN ls build/
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /app/build/ /usr/share/nginx/html/
|
Loading…
Reference in a new issue