Fix Dockerfile

This commit is contained in:
Jan-Henrik 2024-01-13 15:22:13 +01:00
parent 497f7027d2
commit 03c8014766
2 changed files with 5 additions and 4 deletions

View file

@ -5,10 +5,10 @@ RUN ./platform.sh # should write /.platform and /.compiler
RUN rustup target add $(cat /.platform)
RUN apt update && apt-get install -y unzip $(cat /.compiler)
WORKDIR ./ics-adapter
WORKDIR ./notes2ics
ADD . ./
RUN cargo build --release --target $(cat /.platform)
RUN cp ./target/$(cat /.platform)/release/ics-adapter /ics-adapter.bin # Get rid of this when build --out is stable
RUN cp ./target/$(cat /.platform)/release/notes2ics /notes2ics.bin # Get rid of this when build --out is stable
FROM debian:buster-slim
@ -27,11 +27,11 @@ RUN groupadd $APP_USER \
&& useradd -g $APP_USER $APP_USER \
&& mkdir -p ${APP}
COPY --from=cross /ics-adapter.bin ${APP}/ics-adapter
COPY --from=cross /notes2ics.bin ${APP}/notes2ics
RUN chown -R $APP_USER:$APP_USER ${APP}
USER $APP_USER
WORKDIR ${APP}
CMD ["./ics-adapter"]
CMD ["./notes2ics"]

View file

@ -5,6 +5,7 @@ services:
NOTES_USERNAME: <username>
NOTES_PASSWORD: <password>
NOTES_HOST: domino2.something.de
TZ: Europe/Berlin
HOST: 0.0.0.0
PORT: 3000
ports: