fux
This commit is contained in:
parent
7d7516ad99
commit
ecd87894a7
10
Dockerfile
10
Dockerfile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue