forked from plasmaconduit/front-line
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.docker
35 lines (28 loc) · 1.07 KB
/
dev.docker
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
34
35
# Use the latest stable release of ubuntu
FROM ubuntu:22.04
# Create and set the working directory
WORKDIR /opt/front-line
# Set environment variables to non-interactive (this prevents some prompts)
ENV DEBIAN_FRONTEND=non-interactive
# Update the package list, install packages, find pinned versions here: https://packages.ubuntu.com/
RUN apt-get update && \
apt-get install -y \
curl=7.81.* \
unzip=6.* \
npm=8.5.* \
git=1:2.34.* \
pre-commit=2.17.* \
build-essential=12.* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install doctoc for auto table of contents generation four the READMEs
RUN npm install -g [email protected]
# Install specific rust version rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup install 1.72.1
# Mark the git mount as safe
RUN git config --global --add safe.directory /opt/front-line
# Copy the docker utility scripts and set the entrypoint to the proxy script
COPY docker /opt/docker
ENTRYPOINT ["/opt/docker/entrypoint.sh"]