forked from draios/infra-action-mark2confluence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 1.08 KB
/
Dockerfile
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
FROM python:3-slim AS builder
ADD . /app
WORKDIR /app
RUN pip install --target=/app -r requirements.txt
FROM python:3-slim
ENV MARK="9.2.1"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y tar curl sudo && \
rm -rf /var/lib/apt/lists/*
RUN curl -LO https://github.com/kovetskiy/mark/releases/download/${MARK}/mark_${MARK}_Linux_x86_64.tar.gz && \
tar -xvzf mark_${MARK}_Linux_x86_64.tar.gz && \
chmod +x mark && \
sudo mv mark /usr/local/bin/mark
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y wget
RUN apt-get update && apt-get install -y gnupg2
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
RUN apt-get update && apt-get -y install google-chrome-stable
COPY --from=builder /app /app
WORKDIR /app
ENV PYTHONPATH /app
ENV DOC_PREFIX /github/workspace/
ENV LOGURU_FORMAT "<lvl>{level:7} {message}</lvl>"
ENTRYPOINT [ "python" ]
CMD ["/app/mark2confluence/main.py"]