forked from libDrive/heroku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 823 Bytes
/
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
FROM ubuntu:20.04
WORKDIR /usr/src/app
ENV TZ UTC
RUN chmod 777 /usr/src/app
RUN apt-get update -y && \
apt-get install -y --no-install-recommends python3.9 && \
apt-get install -y --no-install-recommends python3.9-dev && \
apt-get install -y --no-install-recommends python3-pip && \
apt-get install -y curl && \
apt-get install -y git && \
apt-get install -y gnupg
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get -y install nodejs
RUN npm install --global yarn
RUN npm install --global @cloudflare/wrangler
RUN curl -O https://raw.githubusercontent.com/libDrive/server/main/requirements.txt && \
pip3 install -r requirements.txt --no-cache-dir
ENV PATH="/usr/src/app/.local/bin:${PATH}"
COPY . .
RUN chmod +x ./.bin/setup.sh ./.bin/start.sh
RUN ./.bin/setup.sh