File size: 314 Bytes
28acf4a
 
a87fb0f
28acf4a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Base image
FROM rust:1.77.2-alpine3.18
# Set working directory
WORKDIR /app
# Copy application code and dependencies
COPY . .
# Install OS dependencies
RUN apk add --no-cache musl-dev
# Build the application
RUN cargo install --path .
# Run the application
CMD [ "/usr/local/cargo/bin/rust-rocket-counter-api" ]