-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile-dev
33 lines (29 loc) · 826 Bytes
/
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
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 \
rsync \
&& \
# Clean out directories that don't need to be part of the image
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& \
# 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/sqlc-dev/sqlc/cmd/sqlc@latest \
&& \
go install github.com/delaneyj/toolbelt/sqlc-gen-zombiezen@latest \
&& \
go install golang.org/x/tools/cmd/goimports@latest \
&& \
# Make this a safe .git directory
git config --global --add safe.directory /app
ENTRYPOINT ["/bin/sh"]