Skip to content

Commit

Permalink
Merge pull request #3453 from HHS/hotfix/hmr
Browse files Browse the repository at this point in the history
fix: fixed hmr
  • Loading branch information
fpigeonjr authored Feb 13, 2025
2 parents dc1ea9d + d00963a commit e2632f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Use the official Bun image (using a tag version for consistency)
FROM oven/bun:1 AS base
WORKDIR /usr/src/app
WORKDIR /home/app

# Stage to install only production dependencies
FROM base AS prod-deps
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
WORKDIR /temp/prod
RUN mkdir -p /home/app
COPY package.json bun.lockb /home/app/
WORKDIR /home/app
RUN bun install --frozen-lockfile --production

# Production image – copy only production dependencies and source code (assumes your code is prebuilt)
FROM base AS release
COPY --from=prod-deps /temp/prod/node_modules ./node_modules
COPY --from=prod-deps /home/app/node_modules ./node_modules
COPY . .
# If you have a build step that does not rely on devDependencies, run it here
CMD ["bun", "start"]

0 comments on commit e2632f0

Please sign in to comment.