File tree Expand file tree Collapse file tree 4 files changed +1
-4
lines changed Expand file tree Collapse file tree 4 files changed +1
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 18
18
19
19
4. Run this command to expose the container:
20
20
```sh
21
- docker run -p 9001:9001 --env-file ./.env.local- docker-standalone user-express-local
21
+ docker run -p 9001:9001 --env-file ./.env.docker user-express-local
22
22
```
23
23
24
24
## Running with Docker-Compose (Main config)
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ services:
25
25
target : build
26
26
args :
27
27
# For building with the correct env vars
28
- - env=${EXPRESS_ENV}
29
28
- port=${EXPRESS_PORT}
30
29
ports :
31
30
- " 9001:${EXPRESS_PORT}"
Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ COPY package*.json ./
4
4
RUN npm install
5
5
ARG env
6
6
COPY . .
7
- # COPY ".env.${env}" .env
8
7
RUN npm run build
9
8
10
9
FROM node:lts-alpine AS production
11
10
WORKDIR /data/user-express
12
11
COPY --from=build /data/user-express/package*.json ./
13
12
RUN npm ci --omit=dev
14
13
COPY --from=build --chown=node:node /data/user-express/dist ./dist
15
- # COPY --from=build /data/user-express/.env .env
16
14
17
15
ARG port
18
16
EXPOSE ${port}
You can’t perform that action at this time.
0 commit comments