This repository was archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcoder.Dockerfile
More file actions
35 lines (24 loc) · 1.6 KB
/
coder.Dockerfile
File metadata and controls
35 lines (24 loc) · 1.6 KB
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
FROM debian:stable-slim
### Required Packages ###
RUN apt-get update -yq \
&& apt-get install -y sqlite3 lsb-release git-core curl gnupg sudo build-essential wget openssl ruby ruby-dev libopus-dev opus-tools binutils libssl-dev zlib1g-dev libboost-system-dev libcurl4-openssl-dev libffi-dev python-dev-is-python3 ffmpeg build-essential autoconf automake libtool m4 youtube-dl
### Homebrew ###
RUN mkdir ~/.cache && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH
ENV MANPATH="$MANPATH:/home/linuxbrew/.linuxbrew/share/man"
ENV INFOPATH="$INFOPATH:/home/linuxbrew/.linuxbrew/share/info"
RUN echo 'export PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH' >> /root/.profile
RUN brew update && brew install gh node abdfnx/tap/botway zeabur/tap/cli deno java gradle rust rustup-init pipenv mongodb/brew/mongodb-community mysql redis
RUN npm i -g npm@latest pnpm@latest yarn@latest
### Setup Coder ###
ENV SHELL=/bin/bash
ENV PORT=8080
COPY settings.json /root/.local/share/code-server/User/settings.json
COPY entrypoint /usr/bin/entrypoint
RUN chmod 755 /usr/bin/entrypoint
RUN curl -fsSL https://code-server.dev/install.sh | sh
### PostgreSQL ###
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update -yq \
&& apt-get install -y postgresql