diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4192092 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:20 + +WORKDIR /app + +COPY package*.json ./ + +RUN yarn + +COPY . . + +RUN yarn build + +EXPOSE 3000 + +CMD [ "yarn", "start" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..15409b5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.8' +services: + app: + build: + context: . + dockerfile: Dockerfile + ports: + - '3000:3000'