-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.dev
More file actions
33 lines (26 loc) · 849 Bytes
/
Dockerfile.dev
File metadata and controls
33 lines (26 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM rust:1.82-bullseye
# Update and install necessary packages, including libc6-dev for libresolv
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wget \
curl \
libpq-dev \
pkg-config \
clang \
build-essential \
libc6-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Ensure CA certificates are installed
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
WORKDIR /app
#Install go
COPY scripts/install-go.sh install-go.sh
RUN ./install-go.sh
ENV PATH=$PATH:/usr/local/go/bin
# Set Rust flags to link against libresolv
ENV RUSTFLAGS="-C link-arg=-lresolv"
# Download and install dev environment deps
RUN cargo install --locked cargo-binstall
# Install nextest for tests...
RUN cargo binstall cargo-nextest --secure