-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (23 loc) · 1.19 KB
/
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
FROM node:12.22.12
MAINTAINER Dmitry Antonenko <[email protected]>
RUN echo "deb http://security.debian.org/ jessie/updates main" | tee /etc/apt/sources.list && \
echo "deb-src http://security.debian.org/ jessie/updates main" | tee /etc/apt/sources.list && \
echo "deb http://security.debian.org/ jessie/updates main contrib non-free" | tee /etc/apt/sources.list && \
echo "deb-src http://security.debian.org/ jessie/updates main contrib non-free" | tee /etc/apt/sources.list && \
echo "deb http://http.us.debian.org/debian jessie main contrib non-free" | tee /etc/apt/sources.list && \
apt-get update && \
apt-get install -y php5-dev apt-transport-https && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn && \
apt-get clean && \
rm -rf \
/root/.composer \
/tmp/* \
/usr/include/php \
/usr/lib/php5/build \
/var/lib/apt/lists/*
EXPOSE 3000 3001
USER node
CMD ["node"]