This commit is contained in:
Rizky 2024-01-21 13:17:09 +07:00
parent 7d7516ad99
commit ecd87894a7
1 changed files with 1 additions and 9 deletions

View File

@ -1,15 +1,7 @@
# use the official ubuntu image # use the official ubuntu image
FROM oven/bun:1.0.18-debian as base FROM oven/bun:1.0.18-debian as base
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY coba.ts coba.ts
FROM base AS install
RUN mkdir -p /temp/prod
COPY . /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules
COPY . .
USER bun USER bun
EXPOSE 4550/tcp EXPOSE 4550/tcp