Skip to content

Commit

Permalink
SB-08:fix: api service&command-service docker file issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
divyagovindaiah committed Oct 26, 2023
1 parent 7baf7b4 commit 3a6b7ff
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions api-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# FROM node:18-alpine
# RUN mkdir -p /opt/api-service
# WORKDIR /opt
# COPY api-service/package.json
# WORKDIR /opt/api-service
# RUN npm install
# EXPOSE 3000
# CMD ["npm", "run", "start"]

FROM --platform=linux/amd64 node:20-alpine
RUN mkdir -p /opt/obsrv-api-service
WORKDIR /opt/obsrv-api-service/
COPY api-service/package*.json ./
RUN npm install
COPY . .
RUN pwd
COPY api-service
EXPOSE 3000
CMD ["npm", "run", "start"]
CMD ["npm", "run", "start"]

0 comments on commit 3a6b7ff

Please sign in to comment.