Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Backend
Commits
10799300
Commit
10799300
authored
Feb 15, 2021
by
Muhammad Rafif Elfazri
Browse files
Fix python installation in alpine image
parent
ae1b69c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
10799300
# 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 n
odejs npm yarn python
RUN
apk add
--update
--no-cache
build-base n
pm 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/d
ocker_phx
.
COPY
--from=build /app/_build/prod/rel/d
iskuy
.
COPY
entrypoint.sh .
RUN
chown
-R
nobody: /app
USER
nobody
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment