-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 765 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
# Because we intend to use this image on CircleCi, we want to use an image with a bit more components than buster
FROM golang:1.21
LABEL maintainer=det@travelaudience.com
# Fetch the cloudsql proxy
RUN mkdir /proxy &&\
wget https://storage.googleapis.com/cloudsql-proxy/v1.18.0/cloud_sql_proxy.linux.amd64 -O /proxy/cloud_sql_proxy &&\
chmod +x /proxy/cloud_sql_proxy &&\
mkdir /cloudsql
# Fetch goose
RUN export GO111MODULE=on &&\
go install github.com/pressly/goose/v3/cmd/goose@v3.15.0
RUN mkdir /db
WORKDIR /db
# Our execution script
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
COPY ./startup.sh /startup.sh
RUN chmod +x /docker-entrypoint.sh &&\
chmod +x /docker-entrypoint.sh /startup.sh
ENTRYPOINT ["/docker-entrypoint.sh"]