-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathDockerfile-dev
55 lines (51 loc) · 1.23 KB
/
Dockerfile-dev
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
ARG TAG=1.23
FROM golang:$TAG
WORKDIR /app
# Install packages
RUN apt update && sudo apt upgrade \
&& \
set -eux; \
# Packages to install
apt install -y \
git \
jq \
rsync \
nodejs \
npm \
# Needed for headless chrome/tests
libglib2.0-dev \
libnss3-dev \
libdbus-1-dev \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libxcomposite-dev \
libxdamage1 \
libxrandr2 \
libgbm-dev \
libxkbcommon-x11-0 \
libpangocairo-1.0-0 \
libasound2 \
&& \
# Clean out directories that don't need to be part of the image
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& \
# Install node packages \
npm install -g npm@^10.0.0 \
npm install -g pnpm \
&& \
# Install needed Go tooling \
go install github.com/go-task/task/v3/cmd/task@latest \
&& \
go install github.com/a-h/templ/cmd/templ@latest \
&& \
go install github.com/valyala/quicktemplate/qtc@latest \
&& \
# Install flyctl cli \
curl -L https://fly.io/install.sh | sh \
&& \
ln -s /root/.fly/bin/flyctl /usr/local/bin/fly \
&& \
# Make this a safe .git directory
git config --global --add safe.directory /app
ENTRYPOINT ["/bin/sh"]