add docker build files

This commit is contained in:
mightypanders 2022-03-06 17:59:45 +01:00
parent 166836da4d
commit 402295c610
2 changed files with 12 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:alpine as Build
ENV NODE_ENV=production
WORKDIR /app
COPY [ "yarn.lock", "package.json", "index.ts", "tsconfig.json", "./" ]
COPY server ./server
RUN yarn install --production
RUN yarn run build
CMD ["yarn run start"]

1
dockerbuild.sh Normal file
View File

@ -0,0 +1 @@
docker build --tag latest .