forked from getmydia/mydia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
37 lines (31 loc) · 905 Bytes
/
Dockerfile.dev
File metadata and controls
37 lines (31 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM elixir:1.18
# Install build dependencies and Node.js
# Includes both SQLite and PostgreSQL development libraries
# Also includes Chrome and chromedriver for Wallaby browser tests
RUN apt-get update -qq && \
apt-get install -y \
build-essential \
git \
inotify-tools \
curl \
sqlite3 \
libsqlite3-dev \
libpq-dev \
postgresql-client \
watchman \
ffmpeg \
chromium \
chromium-driver && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Hex and Rebar
RUN mix local.hex --force && \
mix local.rebar --force
WORKDIR /app
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 4000
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]