mirror of
https://github.com/13hannes11/ics-proxy.git
synced 2024-09-06 08:01:41 +02:00
adding docker and docker compose files to make app ready for deployment
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM rust:1.54 as builder
|
||||
RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /usr/src/ics-proxy
|
||||
COPY . .
|
||||
RUN cd db && ./create_db.sh
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM debian:buster-slim
|
||||
RUN apt-get update && apt-get install -y sqlite3 openssl && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR app
|
||||
COPY --from=builder /usr/local/cargo/bin/ics-proxy ./ics-proxy
|
||||
COPY --from=builder /usr/src/ics-proxy/db db
|
||||
COPY templates ./templates
|
||||
CMD ["./ics-proxy"]
|
||||
Reference in New Issue
Block a user