-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
29 lines (21 loc) · 887 Bytes
/
Dockerfile
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
FROM lubien/tired-proxy:2 as proxy
FROM hexpm/elixir:1.12.3-erlang-24.1.4-debian-bullseye-20210902-slim
# install build dependencies
RUN apt-get update -y \
&& apt-get install -y build-essential git unzip curl \
&& apt-get clean && rm -f /var/lib/apt/lists/*_* \
&& curl -fsSL https://code-server.dev/install.sh | sh
# prepare build dir
WORKDIR /app
# Use bash shell
ENV SHELL=/bin/bash
RUN curl -L https://fly.io/install.sh | sh \
&& echo 'export FLYCTL_INSTALL="/root/.fly"' >> ~/.bashrc \
&& echo 'export PATH="$FLYCTL_INSTALL/bin:$PATH"' >> ~/.bashrc \
&& code-server --install-extension elixir-lsp.elixir-ls
# Apply VS Code settings
COPY settings.json /root/.local/share/code-server/User/settings.json
# Use our custom entrypoint script first
COPY entrypoint.sh /entrypoint.sh
COPY --from=proxy /tired-proxy /tired-proxy
ENTRYPOINT ["/entrypoint.sh"]