fix task1 dockerfile

This commit is contained in:
2020-01-05 18:18:45 +01:00
parent 0fd59d2e58
commit bb8d8bcfe6
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ services:
ipv4_address: 10.103.204.1
backend1:
build:
dockerfile: ./Dockerfile.task1
context: ../../task1-backend
dockerfile: ./task1-backend/Dockerfile
context: ../..
restart: unless-stopped
networks:
net: {}
@@ -6,7 +6,7 @@ ENV PATH ${GOPATH}/bin:${PATH}
RUN mkdir -p /app
WORKDIR /app
RUN apk add --no-cache go git curl
RUN apk add --no-cache go git curl gcc g++ make
COPY . .
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
WORKDIR /app
COPY --from=builder task1 .
COPY --from=builder task1-backend/config .
COPY --from=builder /app/task1 .
COPY --from=builder /app/task1-backend/config .
EXPOSE 8081