Added Dockerfile

This commit is contained in:
Win 2024-07-19 10:43:13 +07:00
parent 0740b7cc9e
commit f6e27d5f76
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@ WORKDIR /home/node/app
COPY package*.json ./ COPY package*.json ./
USER node USER node
RUN npm install RUN npm install
RUN mkdir -p public/audio
COPY --chown=node:node . . COPY --chown=node:node . .
EXPOSE 3000 EXPOSE 3000
CMD [ "node", "index.js" ] CMD [ "node", "index.js" ]

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: '3'
services:
sanskrit-tts:
image: git.winscloud.net/winsdominoes/sanskrit-tts:latest-amd64
container_name: sanskrit-tts
hostname: sanskrit-tts
ports:
- '3000:3000'