diff --git a/services/electron-update-server/Dockerfile b/services/electron-update-server/Dockerfile new file mode 100644 --- /dev/null +++ b/services/electron-update-server/Dockerfile @@ -0,0 +1,18 @@ +FROM node:16.18.0-bullseye + +WORKDIR /home/comm/ + +COPY package.json yarn.lock ./ +COPY patches patches/ + +COPY services/electron-update-server/package.json \ + services/electron-update-server/ + +RUN yarn install --production --frozen-lockfile + +COPY services/electron-update-server services/electron-update-server/ + +EXPOSE 80 + +WORKDIR /home/comm/services/electron-update-server +CMD ["yarn", "run", "prod"] \ No newline at end of file diff --git a/services/electron-update-server/docker-compose.yml b/services/electron-update-server/docker-compose.yml new file mode 100644 --- /dev/null +++ b/services/electron-update-server/docker-compose.yml @@ -0,0 +1,6 @@ +services: + electron-update-server: + image: electron-update-server + build: + context: ../.. + dockerfile: services/electron-update-server/Dockerfile \ No newline at end of file