Increase CPU\RAM\Storage limits, rename okteto stuff

pull/1/head
hikariatama 2022-05-13 13:49:13 +00:00
parent c3f7c1e1f4
commit 63875b95ba
3 changed files with 7 additions and 6 deletions

View File

@ -2,6 +2,7 @@ FROM python:3.8-slim-buster as main
ADD . /
ENV Docker=true
RUN pip install -r requirements.txt
EXPOSE 3902
RUN apt update && apt install git -y
EXPOSE 8080
RUN mkdir /data
CMD ["python3", "-m", "hikka"]

View File

@ -4,7 +4,7 @@ ENV OKTETO=true
ENV GIT_PYTHON_REFRESH=quiet
RUN pip install -r requirements.txt
RUN pip install -r optional_requirements.txt
RUN apt update && apt install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev -y
RUN apt update && apt install git ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev -y
EXPOSE 8080
RUN mkdir /data
CMD ["python3", "-m", "hikka"]

View File

@ -4,16 +4,16 @@ services:
public: true
build:
context: .
dockerfile: Dockerfile_Okteto
dockerfile: Okteto
replicas: 1
ports:
- 8080
resources:
cpu: 900m
memory: 2Gi
cpu: "1"
memory: 3Gi
volumes:
- worker:/data
volumes:
worker:
size: 1Gi
size: 3Gi