feature/24-production_dockerfile #30

Merged
niggl merged 15 commits from feature/24-production_dockerfile into dev 2020-12-12 19:03:24 +00:00
Showing only changes of commit bcb266e29b - Show all commits

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