This repository has been archived on 2021-12-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hilde/Dockerfile
Jef Roosens 0eeea1e593
Some checks failed
continuous-integration/drone the build failed
Added build dependencies to CI and Dockerfile
2021-06-25 11:32:50 +02:00

22 lines
370 B
Docker

FROM rust:1.52-alpine3.13 AS builder
WORKDIR /src
# Install build dependencies
RUN apk add --no-cache \
musl-dev \
postgresql-dev
# Copy over source code
COPY Cargo.toml Cargo.lock ./
COPY src ./src/
RUN cargo build \
--release
FROM alpine:3.13
COPY --from=builder /src/target/release/hilde /usr/local/bin/hilde
ENTRYPOINT [ "/usr/local/bin/hilde" ]