diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..baad009 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +Dockerfile +.dockerignore +node_modules +npm-debug.log +README.md +.next +.git +codegen.ts diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e599809 --- /dev/null +++ b/Dockerfile @@ -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