-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
43 lines (32 loc) ยท 1.32 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
41
42
43
# ====================================================================== #
# xUnit Slack Reporter Docker Image
# ====================================================================== #
# Base image
# ---------------------------------------------------------------------- #
FROM python:3.7.3
LABEL MAINTAINER="Ivan Lee"
LABEL "com.github.actions.name"="xUnit Slack Reporter"
LABEL "com.github.actions.description"="Reports results of tests in xUnit to Slack channel."
LABEL "com.github.actions.icon"="mic"
LABEL "com.github.actions.color"="purple"
LABEL "repository"="https://github.com/ivanklee86/xunit-slack-reporter"
LABEL "homepage"="https://github.com/ivanklee86/xunit-slack-reporter"
LABEL "maintainer"="Ivan Lee <ivanklee@gmail.com>"
# Copy files into image
# ---------------------------------------------------------------------- #
COPY . /source
WORKDIR /source
# Install app
# ---------------------------------------------------------------------- #
RUN pip install pipenv
RUN pipenv install --system --deploy
# 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"]