fix task1 dockerfile

main
Nikita Tokarchuk 5 years ago
parent 0fd59d2e58
commit bb8d8bcfe6
  1. 4
      deploy/task1/docker-compose.yml
  2. 6
      task1-backend/Dockerfile

@ -11,8 +11,8 @@ services:
ipv4_address: 10.103.204.1 ipv4_address: 10.103.204.1
backend1: backend1:
build: build:
dockerfile: ./Dockerfile.task1 dockerfile: ./task1-backend/Dockerfile
context: ../../task1-backend context: ../..
restart: unless-stopped restart: unless-stopped
networks: networks:
net: {} net: {}

@ -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
Loading…
Cancel
Save