Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: https://git.jvalver.de/Thilawyn/drone-better-docker-autotag/pulls/1
15 lines
435 B
Docker
15 lines
435 B
Docker
FROM oven/bun:1.0
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --reinstall --no-install-recommends ca-certificates && \
|
|
apt-get install -y --no-install-recommends git && \
|
|
apt-get autoremove -y --purge && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY ./ ./
|
|
RUN bun install --frozen-lockfile --no-cache --production && \
|
|
rm -rf ~/.bun
|
|
ENTRYPOINT ["bun", "--cwd=/app", "start", "/drone/src"]
|