-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 734 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
#
# Compile step
FROM golang:alpine AS build-env
ENV GOPATH=/gopath
ENV PATH=$GOPATH/bin:$PATH
ADD . /gopath/src/github.com/dfeyer/flow-debugproxy
RUN apk update && \
apk upgrade && \
apk add git
RUN cd /gopath/src/github.com/dfeyer/flow-debugproxy \
&& go get \
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o flow-debugproxy
#
# Build step
FROM alpine
WORKDIR /app
COPY --from=build-env /gopath/src/github.com/dfeyer/flow-debugproxy/flow-debugproxy /app/
ENV ADDITIONAL_ARGS ""
ENV XDEBUG_PORT 9010
ENV IDE_IP 127.0.0.1
ENV IDE_PORT 9000
ENV FRAMEWORK "flow"
ENTRYPOINT ["sh", "-c", "./flow-debugproxy --xdebug 0.0.0.0:${XDEBUG_PORT} --framework ${FRAMEWORK} --ide ${IDE_IP}:${IDE_PORT} ${ADDITIONAL_ARGS}"]