Upgrade to Bun 1.0 (#1)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: https://git.jvalver.de/Thilawyn/drone-better-docker-autotag/pulls/1
This commit was merged in pull request #1.
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,15 +1,14 @@
|
||||
FROM oven/bun:0.8.1
|
||||
FROM oven/bun:1.0
|
||||
|
||||
RUN apt update -y && \
|
||||
apt full-upgrade -y && \
|
||||
apt install -y --reinstall ca-certificates && \
|
||||
apt install -y --no-install-recommends git && \
|
||||
apt autoremove -y --purge && \
|
||||
apt clean
|
||||
|
||||
COPY ./docker-entrypoint.sh /usr/local/bin
|
||||
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 --production --frozen-lockfile --no-cache && \
|
||||
RUN bun install --frozen-lockfile --no-cache --production && \
|
||||
rm -rf ~/.bun
|
||||
ENTRYPOINT ["bun", "--cwd=/app", "start", "/drone/src"]
|
||||
|
||||
Reference in New Issue
Block a user