Revert to simple Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-08 22:34:28 +00:00
parent 76eec1f58e
commit 1dd0ee483e

View File

@@ -1,18 +1,3 @@
FROM node:18-bookworm-slim AS build
RUN apt-get update && \
apt-get install -y --no-install-recommends python3 g++ build-essential && \
corepack enable
WORKDIR /app
COPY --chown=node:node . .
RUN yarn install --immutable
RUN yarn tsc
RUN yarn build:backend
RUN yarn build
FROM node:18-bookworm-slim
RUN apt-get update && \
@@ -24,16 +9,14 @@ USER node
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build --chown=node:node /app/yarn.lock /app/package.json /app/.yarnrc.yml ./
COPY --from=build --chown=node:node /app/.yarn .yarn
COPY --from=build --chown=node:node /app/packages/backend/dist/skeleton.tar.gz ./
COPY --chown=node:node yarn.lock package.json .yarnrc.yml ./
COPY --chown=node:node .yarn .yarn
COPY --chown=node:node packages/backend/dist/skeleton.tar.gz ./
RUN tar xzf skeleton.tar.gz && rm skeleton.tar.gz
RUN yarn workspaces focus --all --production
COPY --from=build --chown=node:node /app/packages/backend/dist/bundle.tar.gz ./
COPY --chown=node:node packages/backend/dist/bundle.tar.gz app-config*.yaml ./
RUN tar xzf bundle.tar.gz && rm bundle.tar.gz
COPY --from=build --chown=node:node /app/app-config*.yaml ./
CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.production.yaml"]