2022-08-03 21:15:39 -04:00
|
|
|
FROM bitnami/minideb:bullseye AS build
|
2022-01-11 18:17:18 -05:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2023-02-01 18:47:07 -05:00
|
|
|
gcc \
|
|
|
|
libc6-dev \
|
|
|
|
libssl-dev \
|
|
|
|
make
|
2022-01-11 18:17:18 -05:00
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
RUN make -C /app -j $(nproc) release
|
|
|
|
|
2022-08-03 21:15:39 -04:00
|
|
|
FROM bitnami/minideb:bullseye
|
2022-01-11 18:17:18 -05:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
libssl1.1
|
2022-08-03 21:15:39 -04:00
|
|
|
|
2022-01-11 18:17:18 -05:00
|
|
|
COPY --from=build /app/out/release/tildefriends /app/out/release/tildefriends
|
|
|
|
COPY --from=build /app/apps /app/apps
|
|
|
|
COPY --from=build /app/core /app/core
|
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 12345
|
2022-01-17 16:46:32 -05:00
|
|
|
ENTRYPOINT ["/app/out/release/tildefriends"]
|