-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 800 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 800 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
27
# use the official go image as the base image
FROM golang:alpine
# set the working directory inside the container
WORKDIR /go/src
# copy the source code into the container
COPY src/config/info.json config/
COPY src/checkLiveScore/checkLiveScore.go checkLiveScore/
COPY src/checkSchedule/checkSchedule.go checkSchedule/
COPY src/main.go .
# initialize the go module
RUN go mod init src
# install the necessary dependencies
RUN go get -d -v github.com/go-telegram-bot-api/telegram-bot-api
RUN go get github.com/aws/aws-sdk-go/aws
RUN go get github.com/aws/aws-sdk-go/aws/session
RUN go get github.com/aws/aws-sdk-go/service/secretsmanager
RUN go get github.com/aws/aws-lambda-go/lambda
# build the go application
RUN go build -o main main.go
# set the entry point for the container
CMD ["./main"]