dockerfile

This commit is contained in:
Ivan
2024-01-25 14:58:21 +03:00
parent 61675dd3d1
commit d4592ac250
2 changed files with 5 additions and 9 deletions

View File

@@ -1,7 +1,5 @@
FROM node FROM node
WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --production RUN npm install --production

View File

@@ -1,14 +1,12 @@
version: "3" version: "3"
services: services:
captain-app: frontend:
container_name: frontend
build: build:
context: . context: ./
dockerfile: Dockerfile dockerfile: ./Dockerfile
working_dir: /app
command: ["node", "index.js"]
ports: ports:
- "8081:8081" - "8081:8081"
volumes:
- .:/app
env_file: env_file:
- stack.env - stack.env
restart: unless-stopped