Skip to content

Commit ad5d06d

Browse files
authored
fix: fix docker build file path (#4)
1 parent fe977ae commit ad5d06d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ WORKDIR /usr/src/app
1818
COPY --from=builder /usr/src/app/package*.json ./
1919
RUN npm ci --production && npm cache clean --force
2020
COPY --from=builder /usr/src/app/build ./build
21+
RUN mv ./build/src/models/*.json ./build/models
2122

2223
EXPOSE 3000
2324

24-
CMD ["node", "build/src/index.js"]
25+
CMD ["node", "build/index.js"]

docker-compose-prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
- MONGODB_URI=mongodb://mongodb:27017/api-data
2020
- LDAP_URI=ldap://10.0.1.4:389
2121
volumes:
22-
- ./keys/:/app/keys
22+
- ./keys/:/usr/src/app/keys/
2323
depends_on:
2424
- mongodb
2525
restart: unless-stopped

0 commit comments

Comments
 (0)