mirror of
https://github.com/szabodanika/microbin
synced 2024-11-15 05:27:07 +00:00
Merge branch 'master' into master
This commit is contained in:
commit
afa3c516ee
1 changed files with 7 additions and 1 deletions
|
@ -10,16 +10,22 @@ RUN \
|
||||||
apt-get -y install ca-certificates tzdata &&\
|
apt-get -y install ca-certificates tzdata &&\
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
# https://hub.docker.com/r/bitnami/minideb
|
||||||
|
FROM bitnami/minideb:latest
|
||||||
|
|
||||||
|
# microbin will be in /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# copy time zone info
|
||||||
COPY --from=build \
|
COPY --from=build \
|
||||||
/usr/share/zoneinfo \
|
/usr/share/zoneinfo \
|
||||||
/usr/share/zoneinfo
|
/usr/share/zoneinfo
|
||||||
|
|
||||||
COPY --from=build \
|
COPY --from=build \
|
||||||
/etc/ssl/certs/ca-certificates.crt \
|
/etc/ssl/certs/ca-certificates.crt \
|
||||||
/etc/ssl/certs/ca-certificates.crt
|
/etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
# copy built exacutable
|
||||||
COPY --from=build \
|
COPY --from=build \
|
||||||
/app/target/release/microbin \
|
/app/target/release/microbin \
|
||||||
/usr/bin/microbin
|
/usr/bin/microbin
|
||||||
|
|
Loading…
Reference in a new issue