dockerfile
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
FROM node
|
FROM node
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user