Skip to content
Snippets Groups Projects
Commit 1b74100b authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

fixed docker files

parent 0e6ffb08
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,8 @@ services: ...@@ -14,6 +14,8 @@ services:
esm_api_gateway: esm_api_gateway:
build: ./server/ build: ./server/
env_file:
- ./server/.env
container_name: esm_api_gateway container_name: esm_api_gateway
networks: networks:
- esm_data - esm_data
......
FROM node:23-alpine FROM node:23-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/esm_api
COPY package*.json ./ COPY package*.json ./
RUN npm ci --only=production RUN npm ci --only=production
COPY src ./src COPY src ./src
COPY index.js ./index.js
EXPOSE 3000 EXPOSE 3000
CMD [ "node", "index.js" ] CMD [ "node", "index.js" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment