Spaces:
Sleeping
Sleeping
new Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ARG JULIA_VERSION=1.9
|
2 |
+
FROM julia:$JULIA_VERSION
|
3 |
+
|
4 |
+
# FIXME: no need to develop Jugsaw once it is registered
|
5 |
+
COPY . /app
|
6 |
+
WORKDIR /app
|
7 |
+
# The environment varialbe `JUGSAW_SERVER=DOCKER` turns the local mode off
|
8 |
+
RUN JUGSAW_SERVER=DOCKER julia --project=. -e "using Pkg; Pkg.instantiate()"
|
9 |
+
|
10 |
+
EXPOSE $dockerport
|
11 |
+
ENTRYPOINT ["julia", "--project=.", "-e", "import Jugsaw; include(\"app.jl\"); Jugsaw.Server.serve(Jugsaw.APP, port=7860);"]
|