-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile.publish
48 lines (38 loc) · 1.08 KB
/
Dockerfile.publish
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
FROM node:lts-buster
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update --no-install-recommends \
&& apt-get install -y \
build-essential \
jq \
python-dev \
python-pip \
zip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install setuptools==39.2.0
RUN pip install cffi==1.10.0
RUN pip install \
Fabric==1.13.2 \
Jinja2==2.9.6 \
argparse==1.4.0 \
awscli==1.11.135 \
pycrypto==2.6.1 \
requests==2.18.4
RUN cd /tmp && \
wget https://www.openssl.org/source/old/0.9.x/openssl-0.9.8zg.tar.gz && \
tar zxf openssl-0.9.8zg.tar.gz && \
cd openssl-0.9.8zg && \
./config && \
make && \
make install
ENV PATH "/usr/local/ssl/bin:$PATH"
ARG UID
ARG GID
RUN groupadd jenkins -g $GID \
&& useradd -ms /bin/bash jenkins -u $UID -g $GID
RUN mkdir /app
RUN chown jenkins:jenkins -R /app
USER jenkins
COPY package.json /app/
COPY package-lock.json /app/
WORKDIR /app/
RUN npm ci