Skip to content

Commit 2b522ae

Browse files
committed
Update args
1 parent 95a0fff commit 2b522ae

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ services:
99
context: .
1010
dockerfile: node.dockerfile
1111
args:
12-
buildversion: 1
13-
# environment:
14-
# - NODE_ENV=production
15-
# - PORT=3000
16-
# - build=1
12+
PACKAGES: "nano wget curl"
1713
ports:
1814
- "3000:3000"
1915
networks:

node.dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ FROM node:alpine
2121

2222
LABEL author="Dan Wahlin"
2323

24-
ARG buildversion
24+
ARG PACKAGES=nano
25+
26+
ENV TERM xterm
27+
RUN apk update && apk add $PACKAGES
2528

26-
ENV NODE_ENV=production
27-
ENV PORT=3000
28-
ENV build=$buildversion
29-
3029
WORKDIR /var/www
3130
COPY package.json package-lock.json ./
3231
RUN npm install

0 commit comments

Comments
 (0)