Skip to content

Commit 0fd55db

Browse files
Fix Dockerfile.gite.dev.
- Frontend dependencies were missing theis caused the build to fail, add `Run npm install --no-save` step bfore `build` step. - Bump up base image to `golang:1.16-alpine3.13`, this is not related to the build failure.
1 parent 7d61662 commit 0fd55db

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

Dockerfile.gitea.dev

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15-alpine3.12
1+
FROM golang:1.16-alpine3.13
22

33
ARG GOPROXY
44
ENV GOPROXY ${GOPROXY:-direct}
@@ -9,27 +9,28 @@ ARG CGO_EXTRA_CFLAGS
99

1010
#Build & runtime deps
1111
RUN apk --no-cache add \
12-
build-base \
13-
git \
14-
nodejs \
15-
npm \
16-
bash \
17-
ca-certificates \
18-
curl \
19-
gettext \
20-
git \
21-
linux-pam \
22-
openssh \
23-
s6 \
24-
sqlite \
25-
su-exec \
26-
gnupg
12+
build-base \
13+
git \
14+
nodejs \
15+
npm \
16+
bash \
17+
ca-certificates \
18+
curl \
19+
gettext \
20+
git \
21+
linux-pam \
22+
openssh \
23+
s6 \
24+
sqlite \
25+
su-exec \
26+
gnupg
2727

2828

2929
#Setup repo
3030
COPY . /go/src/code.gitea.io/gitea
3131
WORKDIR /go/src/code.gitea.io/gitea
3232

33+
RUN npm install --no-save
3334
RUN make build
3435

3536
# Begin env-to-ini build
@@ -38,16 +39,16 @@ RUN go build contrib/environment-to-ini/environment-to-ini.go
3839
EXPOSE 22 3000
3940

4041
RUN addgroup \
41-
-S -g 1000 \
42-
git && \
43-
adduser \
44-
-S -H -D \
45-
-h /data/git \
46-
-s /bin/bash \
47-
-u 1000 \
48-
-G git \
49-
git && \
50-
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
42+
-S -g 1000 \
43+
git && \
44+
adduser \
45+
-S -H -D \
46+
-h /data/git \
47+
-s /bin/bash \
48+
-u 1000 \
49+
-G git \
50+
git && \
51+
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
5152

5253
ENV USER git
5354
ENV GITEA_CUSTOM /data/gitea

0 commit comments

Comments
 (0)