Perhaps, more correct...
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -3,7 +3,7 @@ ARG MONGO_VERSION=latest
|
|||||||
ARG PORT=9001
|
ARG PORT=9001
|
||||||
|
|
||||||
## mongo build stage
|
## mongo build stage
|
||||||
FROM mongo:${MONGO_VERSION} AS database
|
FROM mongo:$MONGO_VERSION AS database
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY mongo-init.js ./docker-entrypoint-initdb.d/
|
COPY mongo-init.js ./docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
@@ -20,10 +20,10 @@ RUN yarn build
|
|||||||
|
|
||||||
## this is stage two , where the app actually runs
|
## this is stage two , where the app actually runs
|
||||||
FROM node:20-alpine AS containerize
|
FROM node:20-alpine AS containerize
|
||||||
ENV NODE_ENV ${ENV}
|
ENV NODE_ENV $ENV
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN yarn install --frozen-lockfile --production
|
RUN yarn install --frozen-lockfile --production
|
||||||
COPY --from=build /home/node/app/dist .
|
COPY --from=build /home/node/app/dist .
|
||||||
EXPOSE ${PORT}
|
EXPOSE $PORT
|
||||||
CMD ["node","server/index.js"]
|
CMD ["node","server/index.js"]
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
target: database
|
target: database
|
||||||
args:
|
args:
|
||||||
- MONGO_VERSION
|
MONGO_VERSION: 4.4
|
||||||
networks:
|
networks:
|
||||||
- docknet
|
- docknet
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user