ci: add Dockerfile and .dockerignore files

This commit is contained in:
Hossein Mehrabi 2023-08-22 17:58:08 +03:30
parent 0ea14dbb5c
commit ec071b1dc7
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
2 changed files with 26 additions and 0 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
codegen.ts

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:18.13.0-alpine
EXPOSE 3000
WORKDIR /usr/src/app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
COPY yarn.lock .
COPY package.json .
RUN yarn install
COPY . .
RUN yarn build
CMD yarn start