-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
39 lines (29 loc) · 1.1 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
38
39
# Dockerfile for clowder project tests
FROM python:3.8.5
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
ENV PYTHONPATH $PYTHONPATH:/clowder
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
COPY build/ssh /root/.ssh
# Update package list
RUN apt-get update -y
# Install netstat and route
RUN apt-get install net-tools -y
# Install git
RUN apt-get install python-dev -y
# Install git-lfs
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get install git-lfs
# Set up git config
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Clowder Docker"
RUN git config --global push.default simple
RUN git config --system --unset-all filter.lfs.clean
RUN git config --system --unset-all filter.lfs.smudge
RUN git config --system --unset-all filter.lfs.process
RUN git config --system --unset-all filter.lfs.required
# Install pipenv
RUN pip install -U pipenv
CMD ["/usr/bin/env bash"]