move to node:14.15.1-alpine3.12

ref #24
This commit is contained in:
Philipp Dormann 2020-12-12 13:24:18 +01:00
parent 95f40a9c28
commit bcb266e29b
1 changed files with 3 additions and 9 deletions

View File

@ -1,12 +1,5 @@
# FROM node:alpine
# WORKDIR /app
# COPY ./package.json ./
# RUN yarn
# COPY ./ ./
# ENTRYPOINT [ "yarn","dev" ]
# Typescript Build
FROM node:14
FROM node:14.15.1-alpine3.12
WORKDIR /app
COPY package.json ./
RUN yarn
@ -15,9 +8,10 @@ COPY src ./src
RUN yarn build
# module install
# final
FROM node:14
FROM node:14.15.1-alpine3.12
COPY package.json ormconfig.js ./
COPY --from=0 /app/dist dist
# RUN npm install -g npm@7.1.2
RUN npm i --production
RUN npm i sqlite3
RUN npm i pm2 -g