-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 1.18 KB
/
Dockerfile
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
36
37
FROM python:3.8-slim
ENV APP_NAME=virga POETRY_HOME=/etc/poetry
ENV PATH = "${PATH}:/etc/poetry/bin"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends \
ca-certificates curl gnupg build-essential curl vim git
# node
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL \
https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg \
--dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee \
/etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends \
nodejs npm && \
npm install -g yarn
# helm
RUN curl -fsSL \
https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY . /virga
WORKDIR /virga
# python dependencies (Poetry)
RUN curl -sSL https://install.python-poetry.org | python3 - && \
poetry config virtualenvs.create false && \
poetry install --all-extras
CMD [ "bash" ]