From cdf03abb131c06e263fb95571b048c7a2ccb0a93 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Wed, 11 May 2022 14:46:40 +0200 Subject: [PATCH] Oops --- .drone.yml | 16 ++++++++-------- Dockerfile | 5 +++-- pepeservice/Dockerfile | 5 +++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 56fb6de..3698419 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,7 +10,7 @@ steps: image: golang:1.16.4-alpine volumes: - name: build - path: /drone/src + path: /build environment: CGO_ENABLED: 0 GOOS: linux @@ -21,7 +21,7 @@ steps: privileged: true volumes: - name: build - path: /drone/src + path: /build settings: cache_from: - "dutchellie/pepebot:latest" @@ -51,7 +51,7 @@ steps: image: golang:1.17-alpine volumes: - name: build - path: /drone/src + path: /build environment: CGO_ENABLED: 0 GOOS: linux @@ -63,7 +63,7 @@ steps: privileged: true volumes: - name: build - path: /drone/src + path: /build settings: cache_from: - "dutchellie/pepebot_service:latest" @@ -94,7 +94,7 @@ steps: image: golang:1.16.4-alpine volumes: - name: build - path: /drone/src + path: /build environment: CGO_ENABLED: 0 GOOS: linux @@ -105,7 +105,7 @@ steps: privileged: true volumes: - name: build - path: /drone/src + path: /build settings: cache_from: - "dutchellie/pepebot:latest" @@ -135,7 +135,7 @@ steps: image: golang:1.17-alpine volumes: - name: build - path: /drone/src + path: /build environment: CGO_ENABLED: 0 GOOS: linux @@ -147,7 +147,7 @@ steps: privileged: true volumes: - name: build - path: /drone/src + path: /build settings: cache_from: - "dutchellie/pepebot_service:latest" diff --git a/Dockerfile b/Dockerfile index 659bcbc..c1bcfcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ FROM alpine:latest RUN apk --no-cache add ca-certificates -WORKDIR /drone/src -COPY app . +WORKDIR /build +COPY app /root +WORKDIR /root CMD ["./app"] \ No newline at end of file diff --git a/pepeservice/Dockerfile b/pepeservice/Dockerfile index f798d13..a5edd1b 100644 --- a/pepeservice/Dockerfile +++ b/pepeservice/Dockerfile @@ -9,6 +9,7 @@ FROM alpine:latest RUN apk --no-cache add ca-certificates -WORKDIR /drone/src -COPY app . +WORKDIR /build +COPY app /root +WORKDIR /root CMD ["./app"] \ No newline at end of file