Skip to content

Commit ae59d6d

Browse files
committed
Added Dockerfile
1 parent 9871dc4 commit ae59d6d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docker/Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ===========
2+
# = Base Image
3+
# ===========
4+
#
5+
6+
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim
7+
8+
# ===========
9+
# = Author
10+
# ===========
11+
#
12+
13+
LABEL maintainer="bali-framework"
14+
15+
# ===========
16+
# = Initiate Project
17+
# ===========
18+
#
19+
20+
ENV DEBIAN_FRONTEND=noninteractive
21+
22+
RUN apt update && apt install tzdata locales -y \
23+
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
24+
&& sed -i -e 's/# id_ID.UTF-8 UTF-8/id_ID.UTF-8 UTF-8/' /etc/locale.gen \
25+
&& locale-gen \
26+
&& pip install pytest pytest-mock pytest-cov allure-pytest \
27+
&& pip install bali-core
28+
29+
# Add Tini
30+
ENV TINI_VERSION v0.18.0
31+
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
32+
RUN chmod +x /tini

0 commit comments

Comments
 (0)