Skip to content

Commit 33d04a2

Browse files
committed
edited Docker
1 parent 6c39355 commit 33d04a2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docker-compose.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ services:
1313
- "5432:5432"
1414

1515
server:
16-
#build and tag first: cd Server, 'docker build -t NAME .'
17-
image: yourUsername/yourServerImageName:1.0.0
16+
#build and tag first: cd Server, 'docker build -t <TAG> .' and replace image: with your <TAG>
17+
image: max37/scaffoldserver:1.0.0
18+
env_file:
19+
- ./server/.env
1820
depends_on:
1921
- db
2022
expose:

server/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14
1+
FROM node:latest
22

33
WORKDIR /usr/src/app
44

@@ -7,7 +7,6 @@ COPY package*.json ./
77
RUN npm install
88

99
COPY . .
10-
COPY .env .evn
1110
#COPY ormconfig.env ormconfig.env
1211

1312
RUN npm run build

0 commit comments

Comments
 (0)