Merge pull request #3 from jhalitaksoy/feature/docker

add Dockerfile
This commit is contained in:
Halit Aksoy 2022-07-09 14:41:54 +03:00 committed by GitHub
commit 8c85e9a4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"]