-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 773 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 python:3.8 AS base
# package installations
RUN apt-get update; \
apt-get install -y \
curl; \
rm -rf /var/lib/apt/lists/*
# install poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/1.1.5/get-poetry.py | python
ENV PATH = "${PATH}:/root/.poetry/bin"
FROM base AS dev
# install code server
RUN curl -fOL https://github.com/cdr/code-server/releases/download/v3.9.2/code-server_3.9.2_amd64.deb; \
dpkg -i code-server_3.9.2_amd64.deb
# extensions to code-server
RUN code-server --install-extension ms-python.python \
code-server --install-extension ms-pyright.pyright \
code-server --install-extension mhutchie.git-graph
# poetry dependencies
WORKDIR /root/app
COPY pyproject.toml poetry.lock* ./
RUN poetry install