Skip to content

Commit

Permalink
use debian base image
Browse files Browse the repository at this point in the history
  • Loading branch information
CorySanin committed Oct 12, 2024
1 parent 953541c commit c702263
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM oven/bun:alpine AS base
FROM oven/bun:debian AS base
FROM base AS build-env

WORKDIR /build

RUN apk add --no-cache make libtool autoconf automake g++ python3 py3-distutils-extra || echo 'ignoring error'
RUN apt-get update \
&& apt-get install -y --no-install-recommends make libtool autoconf automake g++ python3 python3-distutils-extra \
&& rm -rf /var/lib/apt/lists/*

COPY ./package*json ./
COPY ./bun.lockb ./
Expand All @@ -13,7 +15,9 @@ FROM base AS deploy
WORKDIR /usr/src/openrct2-discord
HEALTHCHECK --timeout=3s \
CMD curl --fail http://localhost:3000 || exit 1
RUN apk add --no-cache curl
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build-env /build .
COPY . .
USER bun
Expand Down

0 comments on commit c702263

Please sign in to comment.