version: "3"
services:
node:
build:
context: ./node
dockerfile: Dockerfile
container_name: node
ports:
- "3000:3000"
volumes:
- ../ht:/data/ht
networks:
- app
networks:
app:
driver: bridge
FROM node:16-alpine
WORKDIR "/data/ht"
RUN npm install
RUN npm run build
CMD ["npm", "run", "start"]
EXPOSE 3000