start script to keep default public folder
All checks were successful
build docker container automatically / build (push) Successful in 3m30s
All checks were successful
build docker container automatically / build (push) Successful in 3m30s
This commit is contained in:
@ -16,9 +16,10 @@ COPY . .
|
||||
RUN dx build -r
|
||||
|
||||
RUN cp /build/target/dx/httpserver/release/web /app -r
|
||||
RUN cp /build/docker_start.sh /app
|
||||
WORKDIR /app
|
||||
RUN rm -rf /build
|
||||
|
||||
ENV IP="0.0.0.0"
|
||||
|
||||
CMD ["./server"]
|
||||
CMD ["/bin/sh", "docker_start.sh"]
|
||||
|
||||
2
docker_start.sh
Normal file
2
docker_start.sh
Normal file
@ -0,0 +1,2 @@
|
||||
cp -r other_public/* public/
|
||||
./server
|
||||
Reference in New Issue
Block a user