Commit 9ea2abd9 authored by Yoann Ono Dit Biot's avatar Yoann Ono Dit Biot Committed by kaiyou
Browse files

Improve dockerfile to speed up building

parent 52c60c14
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