Spaces:
Sleeping
Sleeping
ARG JULIA_VERSION=1.10.0-beta1 | |
# The environment varialbe `JUGSAW_SERVER=DOCKER` turns the local mode off | |
ARG JUGSAW_SERVER=DOCKER | |
FROM julia:$JULIA_VERSION | |
# FIXME: no need to develop Jugsaw once it is registered | |
COPY . /app | |
WORKDIR /app | |
ARG JULIA_DEPOT_PATH=/app | |
RUN julia --project=/app -e "using Pkg; Pkg.instantiate()" | |
RUN chmod -R 777 /app | |
EXPOSE 7860 | |
ENV JULIA_DEPOT_PATH=$JULIA_DEPOT_PATH | |
ENTRYPOINT ["julia", "--project=/app", "-e", "import Jugsaw; include(\"app.jl\"); Jugsaw.Server.serve(Jugsaw.APP, port=7860);"] | |