mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-22 20:23:12 +03:00
Some checks failed
Create and publish a Docker image / build-and-push-server (push) Has been cancelled
Create and publish a Docker image / build-and-push-chart (push) Has been cancelled
Create and publish a Docker image / build-and-push-CR (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
38 lines
No EOL
876 B
Text
38 lines
No EOL
876 B
Text
FROM node:20-alpine AS shared-config
|
|
# Install shared/config dependencies
|
|
WORKDIR /
|
|
COPY ./shared/config/package*.json .
|
|
RUN npm install
|
|
|
|
FROM node:20-alpine AS shared-database
|
|
# Install shared/database dependencies
|
|
WORKDIR /
|
|
COPY ./shared/database/package*.json .
|
|
RUN npm install
|
|
|
|
FROM node:20-alpine AS shared-logger
|
|
# Install the shared/logger dependencies
|
|
WORKDIR /
|
|
COPY ./shared/logger/package*.json .
|
|
RUN npm install
|
|
|
|
FROM node:20-alpine AS collect-currency
|
|
|
|
WORKDIR /
|
|
|
|
# Install server dependencies
|
|
COPY ./collect-currency/package*.json ./
|
|
RUN npm install
|
|
|
|
# Copying shared dependencies
|
|
COPY --from=shared-config /node_modules /node_modules
|
|
COPY --from=shared-database /node_modules /node_modules
|
|
COPY --from=shared-logger /node_modules /node_modules
|
|
|
|
# Copy all the other files
|
|
COPY ./collect-currency/ ./
|
|
COPY ./shared/ ./shared/
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "main.js"] |