scratch_oxygen / Dockerfile
=
up stuff
75cd75b
raw
history blame contribute delete
389 Bytes
FROM julia:1.10.4
RUN useradd --create-home --shell /bin/bash user
RUN mkdir /home/user/app
COPY . /home/user/app
WORKDIR /home/user/app
RUN chown -R user:user /home/
USER user
EXPOSE 8000
EXPOSE 80
ENV JULIA_DEPOT_PATH "/home/user/.julia"
RUN julia -e 'using Pkg; Pkg.activate("."); Pkg.precompile()'
ENTRYPOINT julia --project -e 'using Pkg; Pkg.instantiate(); include("server.jl")'