Dockerfile: Switch to alpine for final image

Mon, 17 Sep 2018 14:46:47 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 17 Sep 2018 14:46:47 +0100
changeset 151
936364f8efcf
parent 150
675d296ff53f
child 152
902544037000

Dockerfile: Switch to alpine for final image

Dockerfile file | annotate | diff | comparison | revisions
--- a/Dockerfile	Mon Sep 17 14:26:46 2018 +0100
+++ b/Dockerfile	Mon Sep 17 14:46:47 2018 +0100
@@ -1,4 +1,4 @@
-FROM ubuntu:xenial AS squish
+FROM debian:9 AS squish
 
 MAINTAINER Matthew Wild <mwild1@gmail.com>
 
@@ -29,21 +29,20 @@
 
 RUN squish riddim
 
-FROM ubuntu:xenial
+FROM alpine:3.8
+
+MAINTAINER Prosody Developers <docker@prosody.im>
+
+# Install dependencies
+RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
+    lua5.2 \
+    lua5.2-expat \
+    lua5.2-socket \
+    lua5.2-sec \
+  && rm -rf /var/cache/apk/*
 
 WORKDIR /opt/riddim
 
-RUN apt-get update \
-    && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
-        lua5.2 \
-	lua-filesystem \
-	lua-socket \
-	lua-sec \
-	lua-cjson \
-	lua-expat \
-        ca-certificates \
-    && rm -rf /var/lib/apt/lists/*
-
 COPY --from=squish /tmp/build/verse.lua /opt/riddim/verse.lua
 COPY --from=squish /tmp/build/riddim.lua /opt/riddim/riddim.lua
 

mercurial