From 1079930039d386366bcc569acdb6fa4dd04c2682 Mon Sep 17 00:00:00 2001
From: Muhammad Rafif Elfazri <rafif.elfazri@gmail.com>
Date: Mon, 15 Feb 2021 21:13:44 +0700
Subject: [PATCH] Fix python installation in alpine image

---
 Dockerfile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 7bdd472..3c609b8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,8 @@
 # File: docker_phx/Dockerfile
-FROM elixir:1.9-alpine as build
+FROM elixir:1.11-alpine as build
 
 # install build dependencies
-RUN apk add --update git build-base nodejs npm yarn python
+RUN apk add --update --no-cache build-base npm git py-pip
 
 RUN mkdir /app
 WORKDIR /app
@@ -36,7 +36,7 @@ RUN mix compile
 RUN mix release
 
 # prepare release image
-FROM alpine:3.9 AS app
+FROM alpine:3.13 AS app
 
 # install runtime dependencies
 RUN apk add --update bash openssl postgresql-client
@@ -50,7 +50,7 @@ WORKDIR /app
 
 
 # copy release to app container
-COPY --from=build /app/_build/prod/rel/docker_phx .
+COPY --from=build /app/_build/prod/rel/diskuy .
 COPY entrypoint.sh .
 RUN chown -R nobody: /app
 USER nobody
-- 
GitLab