Closed yummy527 closed 2 years ago
What permissions are set on bin/server
?
What permissions are set on
bin/server
?
I change nothing to bin/server
in dockerfile.
# pull latest julia image
FROM --platform=linux/amd64 julia:latest
RUN apt-get update
RUN apt-get install -y unzip
# create dedicated user
RUN useradd --create-home --shell /bin/bash genie
# set up the app
RUN mkdir /home/genie/app
COPY . /home/genie/app
WORKDIR /home/genie/app
# configure permissions
RUN chown genie:genie -R *
RUN chmod +x bin/repl
RUN chmod +x bin/server
RUN chmod +x bin/runtask
# switch user
USER genie
# instantiate Julia packages
RUN julia -e "using Pkg; Pkg.activate(\".\"); Pkg.instantiate(); Pkg.precompile(); "
# ports
EXPOSE 8000
EXPOSE 80
# set up app environment
ENV JULIA_DEPOT_PATH "/home/genie/.julia"
ENV GENIE_ENV "dev"
ENV HOST "0.0.0.0"
ENV PORT "8000"
ENV WSPORT "8000"
ENV EARLYBIND "true"
# run app
CMD ["bin/server"]
# or maybe include a Julia file
# CMD julia -e 'using Pkg; Pkg.activate("."); include("IrisClustering.jl"); '
By the way, this command below works well for DockerTest webapp generated in official Genie tutorial, but triggers error for my own webapp.
Deploy.Docker.run(mountapp=true) # this will trigger the error
Describe the bug After successfuly build an image from a Genie webapp, it goes well when I run Deploy.Docker.run(). But an error occurs if the commands is Deploy.Docker.run(mountapp=true).
Error stacktrace
To reproduce Steps to reproduce the behavior and/or Julia code executed.
Expected behavior I expect no errors when running Deploy.Docker.run(mountapp=true)
Additional context Please include the output of
julia> versioninfo()
and
pkg> st