diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..748aeebf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +# syntax=docker/dockerfile:1 + +FROM node:18-alpine +WORKDIR / +COPY . ./ +WORKDIR /backend +RUN npm install +RUN npm run build +CMD ["node", "build/server.js"] +EXPOSE 3000 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7665b51c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: "3.9" +services: + backend: + build: . + ports: + - "127.0.0.1:8182:3000"