ci: add Dockerfile and .dockerignore files
This commit is contained in:
parent
0ea14dbb5c
commit
ec071b1dc7
|
@ -0,0 +1,8 @@
|
|||
Dockerfile
|
||||
.dockerignore
|
||||
node_modules
|
||||
npm-debug.log
|
||||
README.md
|
||||
.next
|
||||
.git
|
||||
codegen.ts
|
|
@ -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
|
Loading…
Reference in New Issue