forked from hikariatama/Hikka
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOkteto
45 lines (34 loc) · 1005 Bytes
/
Okteto
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
44
45
# Template
FROM python:3.8-slim-buster as main
# Add files
ADD . /
# Tell Hikka, that it's running on Okteto
ENV OKTETO=true
# Suppress weird gitpython error
ENV GIT_PYTHON_REFRESH=quiet
# Do not user pip cache dir
ENV PIP_NO_CACHE_DIR=1
# Install mandatory pip requirements
RUN pip install \
--no-warn-script-location \
--no-cache-dir \
-r requirements.txt
# Install non-mandatory pip requirements
# As we are running Okteto, we don't care about resources consuming
RUN pip install \
--no-warn-script-location \
--no-cache-dir \
-r optional_requirements.txt
# Install mandatory apt packages
RUN apt update && apt install \
libcairo2 git ffmpeg libavcodec-dev \
libavutil-dev libavformat-dev libswscale-dev \
libavdevice-dev -y --no-install-recommends
# Clean the cache
RUN rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp/*
# Expose IP address
EXPOSE 8080
# Create data dir
RUN mkdir /data
# Run Hikka
CMD ["python3", "-m", "hikka"]