Spaces:
Sleeping
Sleeping
File size: 527 Bytes
730343d 13450a0 730343d dfd041d 730343d 13450a0 c7e9d2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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);"]
|