Spaces:
Running
Running
eienmojiki
commited on
Commit
•
e5a41ef
1
Parent(s):
aebf2de
Create Dockerfile
Browse files- Dockerfile +62 -0
Dockerfile
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM buildpack-deps:22.04-curl
|
2 |
+
|
3 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
4 |
+
TZ=Asia/Ho_Chi_Minh \
|
5 |
+
PORT=5678 \
|
6 |
+
USER=koga \
|
7 |
+
HOME=home/koga
|
8 |
+
|
9 |
+
USER root
|
10 |
+
|
11 |
+
RUN useradd -m -u 1000 koga
|
12 |
+
|
13 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
14 |
+
bash \
|
15 |
+
unzip \
|
16 |
+
git \
|
17 |
+
git-lfs \
|
18 |
+
curl \
|
19 |
+
sudo \
|
20 |
+
wget \
|
21 |
+
ffmpeg \
|
22 |
+
psmisc \
|
23 |
+
aria2 \
|
24 |
+
build-essential \
|
25 |
+
libnss3-dev \
|
26 |
+
libgdk-pixbuf2.0-dev \
|
27 |
+
libgtk-3-dev \
|
28 |
+
libxss-dev \
|
29 |
+
zlib1g-dev \
|
30 |
+
libncurses5-dev \
|
31 |
+
libssl-dev \
|
32 |
+
libreadline-dev \
|
33 |
+
libffi-dev \
|
34 |
+
libasound2 \
|
35 |
+
make \
|
36 |
+
libnss3 \
|
37 |
+
software-properties-common && \
|
38 |
+
rm -rf /var/lib/apt/lists/*
|
39 |
+
|
40 |
+
RUN curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - && \
|
41 |
+
apt install nodejs && \
|
42 |
+
npm install -g configurable-http-proxy
|
43 |
+
|
44 |
+
RUN cd /tmp && \
|
45 |
+
wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \
|
46 |
+
tar -xf Python-3.10.12.tgz && \
|
47 |
+
cd Python-3.10.12 && \
|
48 |
+
./configure --enable-optimizations && \
|
49 |
+
make install && \
|
50 |
+
cd .. && \
|
51 |
+
rm -rf Python-3.10.12 Python-3.10.12.tgz
|
52 |
+
|
53 |
+
WORKDIR $HOME
|
54 |
+
|
55 |
+
RUN sudo npm install n8n -g
|
56 |
+
RUN chown -R koga: /home
|
57 |
+
|
58 |
+
USER koga
|
59 |
+
|
60 |
+
EXPOSE $PORT
|
61 |
+
|
62 |
+
CMD ["n8n", "start"]
|