docker compose

This commit is contained in:
jonathang4 2025-05-30 18:45:19 +08:00
parent 85f8c54a91
commit 46f2e89b35
2 changed files with 12 additions and 1 deletions

View File

@ -16,6 +16,6 @@ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
WORKDIR /app WORKDIR /app
EXPOSE 8000 EXPOSE 3302
CMD ["npm", "start"] CMD ["npm", "start"]

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: '3.8'
services:
jimeng-free-api:
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./:/app
ports:
- "3300:3302"