-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
57 lines (45 loc) · 1.53 KB
/
Dockerfile.dev
File metadata and controls
57 lines (45 loc) · 1.53 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Dockerfile.dev
# Development environment for Rails, Go applications and truth layer operations
FROM debian:12
# Update package lists
RUN apt-get update --quiet --yes
# Install locales and set UTF-8
RUN apt-get install --quiet --yes locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
# Install build essentials and common tools
RUN apt-get install --quiet --yes \
build-essential \
curl \
git \
make \
libpq-dev \
libssl-dev \
libreadline-dev \
zlib1g-dev \
libyaml-dev
# Install Ruby (for Rails and truth layer)
RUN apt-get install --quiet --yes ruby-full
# Install Node.js (for Rails asset pipeline)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install --quiet --yes nodejs
# Install Yarn
RUN npm install -g yarn
# Install PostgreSQL client
RUN apt-get install --quiet --yes postgresql-client
# Install Rails and Bundler
RUN gem install bundler rails -N
# Install Python 3.11 and pip
RUN apt-get install --quiet --yes python3 python3-pip python3-venv
# Install Go 1.22 (architecture-aware)
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "arm64" ]; then GOARCH="arm64"; else GOARCH="amd64"; fi && \
curl -fsSL "https://go.dev/dl/go1.22.5.linux-${GOARCH}.tar.gz" | tar -C /usr/local -xzf -
ENV PATH="/usr/local/go/bin:/root/go/bin:${PATH}"
ENV GOPATH="/root/go"
# Set working directory
WORKDIR /root/workspace
# Keep container running
CMD ["/bin/bash", "-c", "tail -f /dev/null"]