forked from jmug/stoatchat
- set explicit action permissions - make package owner dynamic so forks can test workflow - build multi platform images using cross compilation amd64 -> arm64 - add a scope to buildx gha cache
15 lines
337 B
Docker
15 lines
337 B
Docker
# Build Stage
|
|
FROM ghcr.io/revoltchat/base:latest AS builder
|
|
|
|
# Bundle Stage
|
|
FROM debian:buster-slim
|
|
RUN apt-get update && \
|
|
apt-get install -y ca-certificates && \
|
|
apt-get clean
|
|
COPY --from=builder /home/rust/src/target/release/revolt-delta ./
|
|
|
|
EXPOSE 8000
|
|
ENV ROCKET_ADDRESS 0.0.0.0
|
|
ENV ROCKET_PORT 8000
|
|
CMD ["./revolt-delta"]
|