mirror of
https://github.com/mainnika/a-quest.git
synced 2026-07-03 17:42:33 +00:00
fix task1 dockerfile
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user