Commit 886c9044 authored by kaiyou's avatar kaiyou
Browse files

Merge branch 'opti_dockerfile' into 'master'

Improve dockerfile to speed up building

See merge request !1
parents 52c60c14 9ea2abd9
Pipeline #870 passed with stage
in 8 seconds
FROM python:3
COPY . /app
COPY requirements-prod.txt /tmp
RUN pip install -r /tmp/requirements-prod.txt \
&& rm /tmp/requirements-prod.txt
COPY . /app
WORKDIR /app
RUN pip install -r requirements-prod.txt \
&& useradd amonit \
&& ln -s /tmp/repo /config
RUN useradd amonit \
&& ln -s /tmp/repo /config
USER amonit
ENTRYPOINT ["python", "-m", "amonit.cli"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment