-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile.build-environment
43 lines (36 loc) · 1.06 KB
/
Dockerfile.build-environment
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
FROM debian:11
WORKDIR /root/
LABEL "maintainer"="Evgenii Sopov <[email protected]>"
LABEL "repository"="https://github.com/freehackquest/fhq-server"
RUN apt-get update && \
apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_22.x -o setup_node_22x.sh && bash setup_node_22x.sh
# basic libs
RUN apt-get update && apt-get install -y --no-install-recommends \
make cmake \
gcc g++ \
curl \
pkg-config \
libcurl4-openssl-dev \
zlib1g zlib1g-dev \
libpng-dev \
default-libmysqlclient-dev \
libwebsockets-dev \
apt-utils \
gcc g++ \
build-essential \
nodejs
# RUN node --version
# RUN npm --version
RUN apt-get install -y --no-install-recommends \
libqt5sql5-mysql \
libqt5websockets5 \
libqt5websockets5-dev \
qtchooser
# prepare cache for build
RUN mkdir /root/node_modules_cache
COPY web-user/package.json /root/node_modules_cache
COPY web-user/package-lock.json /root/node_modules_cache
COPY web-user/package-lock.json /root/node_modules_cache
WORKDIR /root/node_modules_cache
RUN npm install