You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
466 B
22 lines
466 B
FROM docker.io/alpine:edge as builder |
|
COPY . /src |
|
RUN apk add --no-cache \ |
|
cargo \ |
|
build-base \ |
|
openssl-dev \ |
|
&& cd /src \ |
|
&& cargo build --release |
|
|
|
|
|
FROM docker.io/alpine:edge |
|
ENV UID=1337 \ |
|
GID=1337 |
|
COPY --from=builder /src/target/release/roomnamebot /usr/local/bin/roomnamebot |
|
RUN apk add --no-cache \ |
|
libssl1.0 \ |
|
libgcc \ |
|
ca-certificates \ |
|
s6 \ |
|
su-exec |
|
COPY docker/root / |
|
CMD ["/bin/s6-svscan", "/etc/s6.d/"] |