Sfoglia il codice sorgente

Fix normal dockerfile

Tulir Asokan 5 anni fa
parent
commit
c6180660c2
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. 1 4
      Dockerfile

+ 1 - 4
Dockerfile

@@ -3,11 +3,8 @@ FROM golang:1-alpine AS builder
 RUN echo "@edge_community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
 RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev@edge_community
 
-WORKDIR /build
-COPY go.mod go.sum /build/
-RUN go get
-
 COPY . /build
+WORKDIR /build
 RUN go build -o /usr/bin/mautrix-whatsapp
 
 FROM alpine:latest