|
@@ -1,16 +1,21 @@
|
1
|
|
-FROM ubuntu:18.04
|
|
1
|
+FROM alpine
|
2
|
2
|
|
3
|
|
-# Install dependencies
|
4
|
|
-RUN apt-get update --yes && apt-get upgrade --yes
|
5
|
|
-RUN apt-get install git nodejs npm \
|
6
|
|
-libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev libpng-dev build-essential g++ \
|
7
|
|
-ffmpeg \
|
8
|
|
-redis-server --yes
|
9
|
|
-
|
10
|
|
-RUN ln -s `which nodejs` /usr/bin/node
|
|
3
|
+RUN apk add --no-cache \
|
|
4
|
+ git \
|
|
5
|
+ nodejs \
|
|
6
|
+ npm \
|
|
7
|
+ cairo-dev \
|
|
8
|
+ jpeg-dev \
|
|
9
|
+ pango-dev \
|
|
10
|
+ giflib-dev \
|
|
11
|
+ libpng-dev \
|
|
12
|
+ g++ \
|
|
13
|
+ make \
|
|
14
|
+ autoconf \
|
|
15
|
+ ffmpeg \
|
|
16
|
+ redis
|
11
|
17
|
|
12
|
|
-# Non-privileged user
|
13
|
|
-RUN useradd -m audiogram
|
|
18
|
+RUN adduser -D --home=/home/audiogram audiogram
|
14
|
19
|
USER audiogram
|
15
|
20
|
WORKDIR /home/audiogram
|
16
|
21
|
|