File size: 378 Bytes
c80ae2f
15c71cb
c80ae2f
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Create Builder image
FROM --platform=$BUILDPLATFORM rust:1.74.0-alpine3.18

# Install required dependencies
RUN apk add --no-cache alpine-sdk musl-dev g++ make libcrypto3 libressl-dev perl build-base

RUN cargo install cargo-watch --locked

# Create project directory
RUN mkdir -p /project
WORKDIR /project

ENV RUSTFLAGS="-C target-feature=-crt-static"

ENTRYPOINT ["cargo"]