containerised service
This commit is contained in:
+3
-9
@@ -3,13 +3,7 @@
|
|||||||
###########
|
###########
|
||||||
|
|
||||||
# pull official base image
|
# pull official base image
|
||||||
FROM python:alpine as builder
|
FROM dvcorg/cml:0-dvc2-base1-gpu as builder
|
||||||
|
|
||||||
# update system
|
|
||||||
RUN apk update && \
|
|
||||||
apk add git && \
|
|
||||||
apk add rsync && \
|
|
||||||
apk add docker
|
|
||||||
|
|
||||||
# set work directory
|
# set work directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
@@ -20,7 +14,7 @@ ENV PYTHONUNBUFFERED 1
|
|||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN pip install --upgrade pip
|
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
|
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
|
# pull official base image
|
||||||
FROM python:alpine
|
FROM dvcorg/cml:0-dvc2-base1-gpu
|
||||||
|
|
||||||
# create app home
|
# create app home
|
||||||
ENV APP_HOME = /home/app
|
ENV APP_HOME = /home/app
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
gitea-runner:
|
||||||
|
build: .
|
||||||
|
container_name: gitea-runner
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: prod.env
|
||||||
Reference in New Issue
Block a user