mirror of
https://github.com/louislam/dockge.git
synced 2024-12-01 06:34:03 +00:00
20 lines
516 B
Docker
20 lines
516 B
Docker
############################################
|
|
# ⭐ Main Image
|
|
############################################
|
|
FROM louislam/dockge:base AS release
|
|
WORKDIR /app
|
|
COPY --chown=node:node . .
|
|
RUN pnpm install --prod --frozen-lockfile && \
|
|
mkdir ./data
|
|
|
|
VOLUME /app/data
|
|
EXPOSE 5001
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
CMD ["tsx", "./backend/index.ts"]
|
|
|
|
|
|
############################################
|
|
# Mark as Nightly
|
|
############################################
|
|
FROM release AS nightly
|
|
RUN pnpm run mark-as-nightly
|