-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
39 lines (24 loc) · 917 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
39 lines (24 loc) · 917 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
28
29
30
31
32
FROM golang:latest AS build
WORKDIR /project
# Copy the entire project and build it
COPY . /project
RUN go mod tidy
RUN go build -o /bin/project
# FROM gcr.io/distroless/static
# Below for debugging
FROM golang:latest
#FROM ubuntu:latest
COPY --from=build /bin/project /bin/project
#ENTRYPOINT ["/bin/project"]
# Args to project
#CMD []
# docker build --no-cache -t activeincident:v0.0.1 -f Dockerfile .
# kind load docker-image webdev:v0.0.1 webdev:v0.0.1
# kubectl create deployment --image=webdev:v0.0.1
# kubectl create deployment --image=webdev:v0.0.1 webdev
# kubectl port-forward --address 0.0.0.0 webdev 2345:2345
# kubectl port-forward --address 0.0.0.0 webdev 8080:8080
# kubectl expose deployment webdev --port=8080 --target-port=8080
# kubectl port-forward webdev 2345:2345
# kubectl exec -it webdev -- /bin/bash
# dlv debug ./main.go --listen=0.0.0.0:2345 --api-version=2 --headless