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