-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 779 Bytes
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 779 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
FROM continuumio/miniconda3:latest
WORKDIR /usr/src/app
LABEL maintainer="mail@iordanis.me"
LABEL description="Running environment for Ablator"
RUN apt-get update
RUN apt-get install -y openssh-server rsync fuse
RUN apt-get install -y fuse3
RUN apt-get install -y gcc python3-dev build-essential
RUN ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ""
RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
RUN conda update -y conda
ARG PY_VERSION=3.10.12
RUN conda install -y python=$PY_VERSION pip
# This is done to avoid re-installing depedencies on code changes.
COPY ./pyproject.toml ./pyproject.toml
COPY ./README.md ./README.md
RUN pip install --no-cache-dir -e .[dev]
COPY . .
EXPOSE 22
RUN chmod a+x ./scripts/docker-entrypoint.sh
ENTRYPOINT ["./scripts/docker-entrypoint.sh"]