-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
40 lines (31 loc) ยท 1.12 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
31
32
33
34
35
36
37
38
39
40
# ====================================================================== #
# xUnit Slack Reporter Docker Image
# ====================================================================== #
# Base image
# ---------------------------------------------------------------------- #
FROM python:3.10.1
LABEL MAINTAINER="Ivan Lee"
# Make working directory
# ---------------------------------------------------------------------- #
RUN mkdir /source
WORKDIR /source
# Install dependencies
# ---------------------------------------------------------------------- #
COPY poetry.lock /source
COPY pyproject.toml /source
RUN pip install -U pip poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev
# Copy files into image
# ---------------------------------------------------------------------- #
COPY . /source
# Container settings
# ---------------------------------------------------------------------- #
# Image settings
ENV LC_ALL C.UTF-8
ENV LANG =C.UTF-8
# Python variables
ENV PYTHONPATH /source
# Run action
# ---------------------------------------------------------------------- #
ENTRYPOINT ["/source/entrypoint.sh"]