Skip to content

Commit b555996

Browse files
⬆️ Upgrade docker development environment
Upgraded to Elixir 1.16 and Erlang 26, using alpine containers this time to make things more efficient.
1 parent fa593c6 commit b555996

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM hexpm/elixir:1.13.4-erlang-25.0-ubuntu-focal-20211006
1+
FROM hexpm/elixir:1.16.2-erlang-26.1.2-alpine-3.16.9
22

3-
# Install debian packages
4-
RUN apt-get update
5-
RUN apt-get install --yes build-essential inotify-tools postgresql-client
6-
RUN apt-get install --yes git
3+
RUN apk --update add postgresql-client
4+
RUN apk add git
5+
RUN apk add bash
76

87
RUN mix local.hex --force
98
RUN mix local.rebar --force
109

11-
WORKDIR /app
10+
WORKDIR /app

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.2"
22
services:
33
db:
4-
image: postgres
4+
image: postgres:alpine
55
environment:
66
- POSTGRES_HOST_AUTH_METHOD=trust
77
code:

0 commit comments

Comments
 (0)