Skip to content
Snippets Groups Projects
Commit dcf33c14 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

moved apt commands further to the beginning

parent 38fc9ce5
No related branches found
No related tags found
No related merge requests found
Pipeline #76642 passed
...@@ -2,10 +2,12 @@ FROM golang:1.16-buster AS builder ...@@ -2,10 +2,12 @@ FROM golang:1.16-buster AS builder
ARG GITLAB_USER ARG GITLAB_USER
ARG GITLAB_TOKEN ARG GITLAB_TOKEN
ARG BUILDARGS ARG BUILDARGS
WORKDIR /src/gosdn
COPY . .
RUN apt-get update && apt-get install -y git RUN apt-get update && apt-get install -y git
RUN git config --global url."https://$GITLAB_USER:$GITLAB_TOKEN@code.fbi.h-da.de".insteadOf "https://code.fbi.h-da.de" RUN git config --global url."https://$GITLAB_USER:$GITLAB_TOKEN@code.fbi.h-da.de".insteadOf "https://code.fbi.h-da.de"
WORKDIR /src/gosdn
COPY . .
RUN GOOS=linux go build $BUILDARGS ./cmd/gosdn RUN GOOS=linux go build $BUILDARGS ./cmd/gosdn
FROM debian:latest FROM debian:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment