File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1.6.0
22FROM alpine:3.18
33
4- ARG TARGETOS
4+ ARG TARGETOS=linux
55ARG TARGETARCH
66ARG PROTOC_GEN_GO_VERSION=1.31.0
77ARG PROTOC_VERSION=23.4
@@ -17,7 +17,7 @@ RUN arch=$(uname -m); \
1717 unzip protobuf.zip -d /usr/local; \
1818 rm -f protobuf.zip
1919
20- ADD https://github.com/seamia/protodot.git /protodot
20+ RUN git clone https://github.com/seamia/protodot.git /protodot
2121RUN go build -C /protodot -o /usr/local/bin/protodot .
2222
2323RUN mkdir -p $(go env GOPATH)
Original file line number Diff line number Diff line change @@ -103,6 +103,14 @@ devcontainer --workspace-folder . up
103103devcontainer exec --workspace-folder . make proto
104104```
105105
106+ #### Manual ad-hoc use of devcontainer on Linux
107+
108+ First the devcontainer needs to be built and then run to do the make proto:
109+ ``` bash
110+ docker build -f .devcontainer/Dockerfile -t eve-api-builder .
111+ docker run -v $( pwd) :/src -w /src -u $( id -u) eve-api-builder make proto
112+ ```
113+
106114#### Local
107115
108116If running locally, you need to install the prerequisites yourself.
You can’t perform that action at this time.
0 commit comments