HulkToigo commited on
Commit
21639cf
·
verified ·
1 Parent(s): f4577f4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+ # Instala dependencias basicas, rclone oficial do Linux e injeta o Node.js v18
3
+ RUN apt-get update && apt-get install -y curl ffmpeg rclone && \
4
+ curl -fsSL $(echo "h t t p s : / / deb . nodesource . com / setup _ 18 . x" | tr -d ' ') | bash - && \
5
+ apt-get install -y nodejs && \
6
+ apt-get clean && rm -rf /var/lib/apt/lists/*
7
+ RUN useradd -m -u 1000 user
8
+ WORKDIR /app
9
+ RUN chown -R user:user /app
10
+ USER user
11
+ ENV PATH="/home/user/.local/bin:$PATH"
12
+ COPY --chown=user ./package.json ./package.json
13
+ RUN npm install
14
+ COPY --chown=user ./requirements.txt requirements.txt
15
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
+ COPY --chown=user . /app
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]