Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Video-Downloader/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (18 sloc)
522 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:20-bullseye-slim AS base | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | |
FROM base AS build | |
WORKDIR /app | |
COPY . /app | |
RUN corepack enable | |
RUN apt-get update && \ | |
apt-get install -y python3 build-essential | |
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ | |
pnpm install --prod --frozen-lockfile | |
RUN pnpm deploy --filter=@imput/cobalt-api --prod /prod/api | |
FROM base AS api | |
WORKDIR /app | |
COPY --from=build /prod/api /app | |
COPY --from=build /app/.git /app/.git | |
EXPOSE 9000 | |
CMD [ "node", "src/cobalt" ] |