Skip to content

Docker build fails #2879

Closed
Closed
@rrrnld

Description

@rrrnld

I just tried building the docker image locally and it wasn't possible; here's the log:

~/tmp/gitea master          
❯ docker build -t local/gitea .
Sending build context to Docker daemon     15MB
Step 1/13 : FROM alpine:3.6
3.6: Pulling from library/alpine
b56ae66c2937: Pull complete 
Digest: sha256:d6bfc3baf615dc9618209a8d607ba2a8103d9c8a405b3bd8741d88b4bef36478
Status: Downloaded newer image for alpine:3.6
 ---> 053cde6e8953
Step 2/13 : LABEL maintainer "The Gitea Authors"
 ---> Running in ec18f6695127
 ---> f67e9f81a9f9
Removing intermediate container ec18f6695127
Step 3/13 : EXPOSE 22 3000
 ---> Running in d740f84c34f0
 ---> 102f96ff2e65
Removing intermediate container d740f84c34f0
Step 4/13 : RUN apk --no-cache add     su-exec     ca-certificates     sqlite     bash     git     linux-pam     s6     curl     openssh     gettext     tzdata
 ---> Running in 1b21818302ee
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/29) Installing ncurses-terminfo-base (6.0_p20170930-r0)
(2/29) Installing ncurses-terminfo (6.0_p20170930-r0)
(3/29) Installing ncurses-libs (6.0_p20170930-r0)
(4/29) Installing readline (6.3.008-r5)
(5/29) Installing bash (4.3.48-r1)
Executing bash-4.3.48-r1.post-install
(6/29) Installing ca-certificates (20161130-r2)
(7/29) Installing libssh2 (1.8.0-r1)
(8/29) Installing libcurl (7.56.1-r0)
(9/29) Installing curl (7.56.1-r0)
(10/29) Installing libgomp (6.3.0-r4)
(11/29) Installing libintl (0.19.8.1-r1)
(12/29) Installing libunistring (0.9.7-r0)
(13/29) Installing libxml2 (2.9.4-r4)
(14/29) Installing gettext (0.19.8.1-r1)
(15/29) Installing expat (2.2.0-r1)
(16/29) Installing pcre (8.41-r0)
(17/29) Installing git (2.13.5-r0)
(18/29) Installing linux-pam (1.2.1-r1)
(19/29) Installing openssh-keygen (7.5_p1-r1)
(20/29) Installing openssh-client (7.5_p1-r1)
(21/29) Installing openssh-sftp-server (7.5_p1-r1)
(22/29) Installing openssh-server (7.5_p1-r1)
(23/29) Installing openssh (7.5_p1-r1)
(24/29) Installing skalibs (2.5.1.1-r0)
(25/29) Installing execline (2.3.0.1-r0)
(26/29) Installing s6 (2.5.1.0-r0)
(27/29) Installing sqlite (3.20.1-r0)
(28/29) Installing su-exec (0.2-r0)
(29/29) Installing tzdata (2017a-r0)
Executing busybox-1.26.2-r7.trigger
Executing ca-certificates-20161130-r2.trigger
OK: 49 MiB in 40 packages
 ---> 26517c2aa9af
Removing intermediate container 1b21818302ee
Step 5/13 : RUN addgroup     -S -g 1000     git &&   adduser     -S -H -D     -h /data/git     -s /bin/bash     -u 1000     -G git     git &&   echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
 ---> Running in e97561cb693f
1+0 records in
1+0 records out
chpasswd: password for 'git' changed
 ---> d4123d183527
Removing intermediate container e97561cb693f
Step 6/13 : ENV USER git
 ---> Running in 8e0a78bbc008
 ---> 84eb0f82b107
Removing intermediate container 8e0a78bbc008
Step 7/13 : ENV GITEA_CUSTOM /data/gitea
 ---> Running in 2c299797d810
 ---> 90b1664b8a7f
Removing intermediate container 2c299797d810
Step 8/13 : ENV GODEBUG netdns=go
 ---> Running in 5e2f6faa97e3
 ---> 15ef5763fca8
Removing intermediate container 5e2f6faa97e3
Step 9/13 : VOLUME /data
 ---> Running in 4b79bc590b90
 ---> c606c06f143e
Removing intermediate container 4b79bc590b90
Step 10/13 : ENTRYPOINT /usr/bin/entrypoint
 ---> Running in e8f6a3ca81de
 ---> e503121e1631
Removing intermediate container e8f6a3ca81de
Step 11/13 : CMD /bin/s6-svscan /etc/s6
 ---> Running in 65ba636929f9
 ---> cd87d51d7d43
Removing intermediate container 65ba636929f9
Step 12/13 : COPY docker /
 ---> 78d13f0b5ece
Step 13/13 : COPY gitea /app/gitea/gitea
COPY failed: stat /var/lib/docker/tmp/docker-builder306306181/gitea: no such file or directory

~/tmp/gitea 21.38s master          
❯ git --version
git version 2.15.0

~/tmp/gitea master          
❯ docker --version
Docker version 17.09.0-ce, build afdb6d4

~/tmp/gitea master          
❯ git rev-parse --short HEAD
e22be08a

The same thing happens when I try it with v1.2.3. Any suggestions what's wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions