mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Minor fixes on dev setup start up
This commit is contained in:
parent
0a620901a7
commit
2bb0b4d7bf
@ -12,12 +12,14 @@ RUN apt-get update && \
|
||||
# copy current workdir
|
||||
COPY package.json package.json
|
||||
COPY package-lock.json package-lock.json
|
||||
COPY entrypoint.sh entrypoint.sh
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
# install packages
|
||||
RUN npm install
|
||||
RUN mv node_modules /tmp/node_modules
|
||||
|
||||
# copy entrypoint
|
||||
COPY entrypoint.sh entrypoint.sh
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/usr/src/frontend/entrypoint.sh" ]
|
||||
CMD ["npm", "run", "build"]
|
@ -10,11 +10,14 @@ else
|
||||
python manage.py collectstatic --noinput
|
||||
fi
|
||||
|
||||
# Copy pb2/grpc files if they do exist
|
||||
# Print first start up message when pb2/grpc files if they do exist
|
||||
if [ ! -f "/usr/src/robosats/api/lightning/lightning_pb2.py" ]; then
|
||||
echo "Looks like the first run of this container. pb2 and gRPC files were not detected on the attached volume, copying them into the attached volume /robosats/api/node ."
|
||||
cp -R /tmp/* /usr/src/robosats/api/lightning/
|
||||
echo "Looks like the first run of this container. pb2 and gRPC files were not detected on the attached volume, copying them into the attached volume /robosats/api/lightning ."
|
||||
fi
|
||||
|
||||
# Copy and overwrite all existing pb2/grpc files always. Therefore, running
|
||||
# /scripts/generate_grpc.sh only makes sense if done during Dockerfile build
|
||||
cp -R /tmp/* /usr/src/robosats/api/lightning/
|
||||
|
||||
# Start server / gunicorn / daphne / command
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user