arcbtc / nostr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem run in docker

UrsZeidler opened this issue · comments

Hi I have made a very simple docker file to check out the thing:

FROM node:14

# Create app directory
WORKDIR /usr/src/app

RUN git clone https://github.com/arcbtc/nostr.git

WORKDIR /usr/src/app/nostr


RUN npm install -g @quasar/cli

RUN npm install 

RUN quasar build

ADD start-server.sh /usr/src/app/nostr
ENTRYPOINT ["/bin/bash"]

EXPOSE 4000

#RUN quasar serve
CMD [ "/usr/src/app/nostr/start-server.sh" ]

with

#!/bin/bash

cd  /usr/src/app/nostr
echo "start server"
quasar serve

as start-server script,
it builds and starts, but find nothing to serve:

Quasar CLI.......... v1.1.3
 Listening at........ http://4be4867d485c:4000
 Web server root..... /usr/src/app/nostr
 Gzip................ enabled
 Cache (max-age)..... 86400
 Micro-cache......... 1s
 Index file.......... index.html

GET / [172.17.0.1] Thu Feb 11 2021 07:09:32 GMT+0000 (Coordinated Universal Time)
  404 on /

Any idea?

commented

Not sure on docker. Quasar builds the spa in dist/spa, so do you need to ADD start-server.sh /usr/src/app/nostr/dist/spa?

Nice, that did the trick.

cd /usr/src/app/nostr/dist/spa

Now I can take a look. Thanks.