File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11ARG IMG=node:22.11-alpine3.19
22
3- FROM $IMG as builder
4-
5- # This should be set after the FROM to work
6- ARG ENABLE_RABBITMQ=false
3+ FROM $IMG AS builder
74
85WORKDIR /usr/src/app/
96
@@ -20,7 +17,7 @@ COPY config.js.docker ./src/config.js
2017
2118RUN npm run build && npm run build-scripts
2219
23- FROM $IMG as deps
20+ FROM $IMG AS deps
2421
2522WORKDIR /usr/src/app/
2623ENV NODE_ENV=production
@@ -33,6 +30,8 @@ RUN apk add --no-cache --virtual .gyp python3 make g++ &&\
3330 npm ci --only=production
3431
3532# Install amqp library if RabbitMQ is enabled
33+ ARG ENABLE_RABBITMQ=false
34+ ENV ENABLE_RABBITMQ=${ENABLE_RABBITMQ}
3635RUN if [ "$ENABLE_RABBITMQ" = "true" ]; then npm install amqplib@^0.10.5; fi
3736
3837RUN apk del .gyp &&\
You can’t perform that action at this time.
0 commit comments