add Dockerfile

This commit is contained in:
Halit Aksoy 2022-07-09 14:40:56 +03:00
parent bf2c543e70
commit 876189651d
2 changed files with 20 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM node:lts-buster-slim
ENV PORT=6000
# Create app directory
WORKDIR /usr/src/app
COPY package.json package.json
COPY yarn.lock yarn.lock
RUN yarn
COPY . .
RUN yarn build
EXPOSE ${PORT}
CMD [ "yarn", "start"]