-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 774 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 774 Bytes
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
FROM golang:1.21
RUN mkdir -p /go/src/github.com/AdRoll/batchiepatchie
WORKDIR /go/src/github.com/AdRoll/batchiepatchie
COPY . /go/src/github.com/AdRoll/batchiepatchie
RUN go mod download -x
EXPOSE 5454
EXPOSE 9999
RUN go install github.com/pilu/fresh@latest
RUN go install github.com/go-delve/delve/cmd/dlv@latest
RUN wget https://github.com/pressly/goose/releases/download/v2.6.0/goose-linux64 -O /usr/bin/goose
# RUN go get -u github.com/pressly/goose/cmd/goose
RUN set -eux; \
apt-get update; \
apt-get install -y gosu; \
rm -rf /var/lib/apt/lists/*; \
# verify that the binary works
gosu nobody true
RUN chmod +x /usr/bin/goose
RUN chmod +x /go/src/github.com/AdRoll/batchiepatchie/docker_run.sh
CMD ["/go/src/github.com/AdRoll/batchiepatchie/docker_run.sh"]