update docker file

This commit is contained in:
Win 2024-07-19 12:20:09 +07:00
parent f835841ee2
commit 1b6d587c30
2 changed files with 2 additions and 2 deletions

View File

@ -5,5 +5,5 @@ COPY package*.json ./
USER node USER node
RUN npm install RUN npm install
COPY --chown=node:node . . COPY --chown=node:node . .
EXPOSE 3000 EXPOSE 7000
CMD [ "node", "index.js" ] CMD [ "node", "index.js" ]

View File

@ -5,7 +5,7 @@ services:
container_name: photospherestudio container_name: photospherestudio
hostname: photospherestudio hostname: photospherestudio
ports: ports:
- '3000:3000' - '7000:7000'
volumes: volumes:
- ./config.json:/home/node/app/config.json - ./config.json:/home/node/app/config.json
restart: 'on-failure' restart: 'on-failure'