-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.dev
More file actions
27 lines (21 loc) · 801 Bytes
/
Dockerfile.dev
File metadata and controls
27 lines (21 loc) · 801 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
FROM mcr.microsoft.com/vscode/devcontainers/python:3.11
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# Additional library needed by some tests and accordingly by VScode Tests Discovery
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src
WORKDIR /workspaces
# Install Python dependencies from requirements
COPY requirements.txt ./
COPY .github/workflows/constraints.txt ./
RUN pip3 install -r requirements.txt
RUN pip3 install -r constraints.txt
RUN rm -rf requirements.txt
RUN rm -rf constraints.txt
# Set the default shell to bash instead of sh
ENV SHELL /bin/bash