containerised service
This commit is contained in:
+3
-9
@@ -3,13 +3,7 @@
|
||||
###########
|
||||
|
||||
# pull official base image
|
||||
FROM python:alpine as builder
|
||||
|
||||
# update system
|
||||
RUN apk update && \
|
||||
apk add git && \
|
||||
apk add rsync && \
|
||||
apk add docker
|
||||
FROM dvcorg/cml:0-dvc2-base1-gpu as builder
|
||||
|
||||
# set work directory
|
||||
WORKDIR /usr/src/app
|
||||
@@ -20,7 +14,7 @@ ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# install dependencies
|
||||
RUN pip install --upgrade pip
|
||||
COPY requirements.txt .
|
||||
COPY req-prod.txt requirements.txt
|
||||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requirements.txt
|
||||
|
||||
#########
|
||||
@@ -28,7 +22,7 @@ RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requir
|
||||
#########
|
||||
|
||||
# pull official base image
|
||||
FROM python:alpine
|
||||
FROM dvcorg/cml:0-dvc2-base1-gpu
|
||||
|
||||
# create app home
|
||||
ENV APP_HOME = /home/app
|
||||
|
||||
Reference in New Issue
Block a user