parent
95f40a9c28
commit
bcb266e29b
12
Dockerfile
12
Dockerfile
@ -1,12 +1,5 @@
|
|||||||
# FROM node:alpine
|
|
||||||
# WORKDIR /app
|
|
||||||
# COPY ./package.json ./
|
|
||||||
# RUN yarn
|
|
||||||
# COPY ./ ./
|
|
||||||
# ENTRYPOINT [ "yarn","dev" ]
|
|
||||||
|
|
||||||
# Typescript Build
|
# Typescript Build
|
||||||
FROM node:14
|
FROM node:14.15.1-alpine3.12
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN yarn
|
RUN yarn
|
||||||
@ -15,9 +8,10 @@ COPY src ./src
|
|||||||
RUN yarn build
|
RUN yarn build
|
||||||
# module install
|
# module install
|
||||||
# final
|
# final
|
||||||
FROM node:14
|
FROM node:14.15.1-alpine3.12
|
||||||
COPY package.json ormconfig.js ./
|
COPY package.json ormconfig.js ./
|
||||||
COPY --from=0 /app/dist dist
|
COPY --from=0 /app/dist dist
|
||||||
|
# RUN npm install -g npm@7.1.2
|
||||||
RUN npm i --production
|
RUN npm i --production
|
||||||
RUN npm i sqlite3
|
RUN npm i sqlite3
|
||||||
RUN npm i pm2 -g
|
RUN npm i pm2 -g
|
||||||
|
Loading…
x
Reference in New Issue
Block a user