-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Silex/main
- Fix docker permissions - Fix docker name filtering to match specific container
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM oven/bun:latest AS base | ||
|
||
WORKDIR /usr/src/app | ||
|
||
FROM base AS prerelease | ||
|
||
ENV NODE_ENV=production | ||
COPY package.json bun.lockb . | ||
RUN bun install --frozen-lockfile --production | ||
COPY . . | ||
ENV NODE_ENV=production | ||
RUN bun test | ||
RUN bun run build | ||
|
||
FROM base AS release | ||
COPY --from=prerelease /usr/src/app/dist/index.js . | ||
|
||
USER bun | ||
ENV NODE_ENV=production | ||
COPY --from=prerelease /usr/src/app/dist/index.js . | ||
EXPOSE 3000/tcp | ||
ENTRYPOINT [ "bun", "run", "index.js" ] |
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