Basic Dockerfile

This commit is contained in:
Nicolai Ort 2021-08-14 09:55:34 +02:00
parent 1c2c1dbbbb
commit 2e7d924815
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 15 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:15-alpine as run
COPY package.json .
RUN yarn --prod
ENV NODE_ENV production
EXPOSE 3000
WORKDIR /app
COPY migrations ./migrations
COPY src/server.js ./
COPY knexfile.js ./
CMD ["node", "./server.js"]