This commit is contained in:
Rizky 2024-01-21 16:44:57 +07:00
parent 13206575cc
commit e48cafe535
1 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,13 @@
FROM oven/bun:1.0.18-debian as base FROM oven/bun:1.0.18-debian as base
WORKDIR /app/docker
RUN mkdir -p /app/prasi/repo
RUN apt-get update RUN apt-get update
RUN apt-get install git curl gnupg zip unzip -yq RUN apt-get install git curl gnupg zip unzip -yq
RUN cd /app/prasi/repo && git reset --hard && git pull && RUN bun install && bun build
COPY docker.ts docker.ts
USER bun USER bun
EXPOSE 3000/tcp
EXPOSE 4550/tcp EXPOSE 4550/tcp
CMD [ "bun", "run", "prod" ]
CMD [ "bun", "run", "docker.ts" ]