-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quickly add development Dockerfile for develop
- Loading branch information
Sebastian Tilsch
committed
Mar 20, 2024
1 parent
094e57e
commit 8eca18c
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM oven/bun:1 as bun | ||
|
||
FROM node:18-slim AS base | ||
|
||
FROM base AS dev | ||
WORKDIR /app | ||
COPY --from=bun /usr/local/bin/bun /usr/local/bin | ||
COPY --from=bun /usr/local/bin/bunx /usr/local/bin | ||
|
||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV NEXT_PUBLIC_BASE_PATH "" | ||
|
||
|
||
RUN addgroup --system --gid 1000 nodejs | ||
RUN adduser --system --uid 1000 nextjs | ||
USER nextjs | ||
|
||
EXPOSE 3000 | ||
|
||
ENV PORT 3000 | ||
# set hostname to localhost | ||
ENV HOSTNAME "0.0.0.0" |
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