silverwind / droppy

**ARCHIVED** Self-hosted file storage
BSD 2-Clause "Simplified" License
1.62k stars 194 forks source link

Building docker image fails #410

Closed oliverkurth closed 3 years ago

oliverkurth commented 4 years ago

I was trying to build a new docker image to see if that would fix issue #409 , but that fails:

$ docker build .
Sending build context to Docker daemon  767.5kB
Step 1/10 : FROM node:alpine
alpine: Pulling from library/node
99fc70ac0b64: Already exists 
f206e1898464: Pull complete 
d895ff53fd53: Pull complete 
95f4376ce10e: Pull complete 
Digest: sha256:7d1366f697f6e906d0cfd9caf1eba6ad3380e20d950b30df9b6e9aca3b141efe
Status: Downloaded newer image for node:alpine
 ---> 30bb03f6ec2e
Step 2/10 : MAINTAINER silverwind
 ---> Running in f35c85488217
Removing intermediate container f35c85488217
 ---> b2e97d5de089
Step 3/10 : COPY ["client", "/droppy/client"]
 ---> 805eb9874c57
Step 4/10 : COPY ["server", "/droppy/server"]
 ---> c13c78ee96ad
Step 5/10 : COPY ["dist", "/droppy/dist"]
COPY failed: stat /var/lib/docker/tmp/docker-builder941563305/dist: no such file or directory

It looks like it's expecting a dist directory, but that doesn't exist.

insajd commented 3 years ago

Hey! ./droppy.js build creates needed directory.

git clone https://github.com/silverwind/droppy
cd droppy
npm install
./droppy.js build
docker build .
silverwind commented 3 years ago

Yeah. Assets need to be built first using either make build or ./droppy.js build. This is part of the Makefile and release targets.