Skip to content
Snippets Groups Projects
Commit dd88f4d6 authored by Lukáš Kratochvíl's avatar Lukáš Kratochvíl
Browse files

feat: docker - NestJS server

parent 9f628fa0
No related branches found
No related tags found
No related merge requests found
FROM node:16-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
CMD ["npm", "run", "build"]
version: '3.8'
services:
server:
container_name: film_database-server
image: film_database-server:1.0.0
build:
context: ./backend
dockerfile: Dockerfile
command: npm run start:dev
ports:
- 127.0.0.1:3000:3000
networks:
- app-network
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
restart: always
networks:
app-network:
driver: bridge
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment