-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (42 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
51 lines (42 loc) · 1.15 KB
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
46
47
48
49
50
51
FROM debian:12-slim
RUN apt-get update &&\
apt-get install -y \
autoconf \
build-essential \
curl \
git \
libcurl4-gnutls-dev \
libgcrypt20-dev \
libgnutls28-dev \
libjansson4 \
libjansson-dev \
libjwt-dev \
libmicrohttpd-dev \
libsqlite3-dev \
libulfius-dev \
libulfius2.7 \
sqlite3 \
tar \
wget \
zlib1g-dev
WORKDIR /opt
RUN git clone https://github.com/mbaraa/ctemplate &&\
cd ctemplate &&\
make &&\
make install
# RUN git clone https://github.com/benmcollins/libjwt &&\
# cd libjwt &&\
# autoreconf -i &&\
# ./configure --without-openssl &&\
# make &&\
# make install
RUN wget https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.xz &&\
tar xpf node-v20.18.0-linux-x64.tar.xz -C /opt &&\
ln -s /opt/node-v20.18.0-linux-x64/bin/node /usr/local/bin/node &&\
ln -s /opt/node-v20.18.0-linux-x64/bin/npx /usr/local/bin/npx &&\
ln -s /opt/node-v20.18.0-linux-x64/bin/npm /usr/local/bin/npm
WORKDIR /app/danktodo
COPY . .
RUN make
EXPOSE 8080
CMD ["./danktodo"]