|
|
@ -6,7 +6,7 @@ ENV PATH ${GOPATH}/bin:${PATH} |
|
|
|
RUN mkdir -p /app |
|
|
|
RUN mkdir -p /app |
|
|
|
WORKDIR /app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
|
|
|
RUN apk add --no-cache go git curl |
|
|
|
RUN apk add --no-cache go git curl gcc g++ make |
|
|
|
|
|
|
|
|
|
|
|
COPY . . |
|
|
|
COPY . . |
|
|
|
RUN go build -o task1 github.com/mainnika/a-quest/task1-backend |
|
|
|
RUN go build -o task1 github.com/mainnika/a-quest/task1-backend |
|
|
@ -19,8 +19,8 @@ ENV PATH ${GOPATH}/bin:${PATH} |
|
|
|
RUN mkdir -p /app |
|
|
|
RUN mkdir -p /app |
|
|
|
WORKDIR /app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
|
|
|
COPY --from=builder task1 . |
|
|
|
COPY --from=builder /app/task1 . |
|
|
|
COPY --from=builder task1-backend/config . |
|
|
|
COPY --from=builder /app/task1-backend/config . |
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 8081 |
|
|
|
EXPOSE 8081 |
|
|
|
|
|
|
|
|