-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 742 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (23 loc) · 742 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
28
29
30
31
32
33
# ================================== BUILDER ===================================
FROM continuumio/miniconda3 AS builder
ARG HTTP_PROXY ${HTTP_PROXY}
ARG HTTPS_PROXY ${HTTPS_PROXY}
ARG NO_PROXY localhost
ARG PIP_EXTRA_INDEX_URL ${PIP_EXTRA_INDEX_URL}
ARG GIT_SSL_NO_VERIFY: "True"
MAINTAINER Sascha Thinius <sascha.thinius.87@gmail.de>
WORKDIR /app/build
COPY . .
RUN conda update conda
RUN conda env update --name root --file ./environment.yml
RUN pip install .
WORKDIR /app
RUN rm -rf build
# ================================= PRODUCTION =================================
FROM builder as production
WORKDIR /app
RUN useradd -m sid
RUN chown -R sid:sid /app
USER sid
ENV PATH="/app:/home/sid/.local/bin:${PATH}"
CMD [ "/bin/bash" ]