parent
5d649cdbcc
commit
066f0c0632
@ -0,0 +1,13 @@
|
||||
FROM node:18-alpine as base
|
||||
|
||||
WORKDIR /home/node/app
|
||||
COPY package.json ./
|
||||
RUN npm install -g npm-check-updates
|
||||
RUN ncu -u
|
||||
RUN npm install
|
||||
COPY . ./
|
||||
|
||||
FROM base as production
|
||||
|
||||
ENV NODE_PATH=./build
|
||||
RUN npm run build
|
@ -0,0 +1,14 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
liveterm:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: base
|
||||
expose:
|
||||
- '3000'
|
||||
ports:
|
||||
- '3000:3000'
|
||||
volumes:
|
||||
- ./src/:/home/node/app/src
|
||||
command: npm run dev
|
Loading…
Reference in new issue