punkfairie-site/Dockerfile

20 lines
481 B
Text
Raw Permalink Normal View History

2024-11-11 01:54:40 +00:00
# https://bun.sh/guides/ecosystem/docker
2024-11-11 02:27:22 +00:00
FROM oven/bun:1.1.19 AS base
2024-11-11 03:12:58 +00:00
WORKDIR /usr/src/app
2024-11-11 01:54:40 +00:00
# Install dependencies into the temp directory
# Install, excluding devDeps
FROM base AS install
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
ENV NODE_ENV=production
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules
COPY . .
# Run the app.
2024-11-24 00:16:22 +00:00
ENTRYPOINT ["bun", "run", "serve"]