mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 23:19:06 +00:00
Basic dockerfile for deployment
This commit is contained in:
parent
bc06e229ea
commit
a350a305ad
2 changed files with 20 additions and 0 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
markdown
|
||||
node_modules
|
||||
.git
|
||||
.gitignore
|
||||
build
|
||||
README.md
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM node:15.12.0-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package-lock.json .
|
||||
COPY package.json .
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm i && npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /app/build/* /usr/share/nginx/html/
|
Loading…
Reference in a new issue