GiggleLiu's picture
new Dockerfile
f0fa7ff
raw
history blame
428 Bytes
ARG JULIA_VERSION=1.9
FROM julia:$JULIA_VERSION
# FIXME: no need to develop Jugsaw once it is registered
COPY . /app
WORKDIR /app
# The environment varialbe `JUGSAW_SERVER=DOCKER` turns the local mode off
RUN JUGSAW_SERVER=DOCKER julia --project=. -e "using Pkg; Pkg.instantiate()"
EXPOSE $dockerport
ENTRYPOINT ["julia", "--project=.", "-e", "import Jugsaw; include(\"app.jl\"); Jugsaw.Server.serve(Jugsaw.APP, port=7860);"]