Skip to content

Commit 1d42402

Browse files
committed
Use Makefile and go.sum
1 parent ee6a977 commit 1d42402

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,19 @@ RUN apk --no-cache add \
2020
# Setup repo
2121
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
2222

23-
COPY ./go.mod .
23+
COPY Makefile .
2424

25-
RUN go mod download
25+
# Download Golang Modules
26+
COPY go.mod .
27+
COPY go.sum .
2628

29+
RUN make deps-backend
30+
31+
# Download NPM Packages
2732
COPY package.json .
2833
COPY package-lock.json .
2934

30-
RUN npm install --no-save --verbose
35+
RUN make deps-frontend
3136

3237
COPY . .
3338

0 commit comments

Comments
 (0)