Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM julia:1.8
|
2 |
+
|
3 |
+
RUN useradd --create-home --shell /bin/bash genie
|
4 |
+
RUN mkdir /home/genie/app
|
5 |
+
COPY . /home/genie/app
|
6 |
+
WORKDIR /home/genie/app
|
7 |
+
RUN chown -R genie:genie /home/
|
8 |
+
USER genie
|
9 |
+
|
10 |
+
EXPOSE 8000
|
11 |
+
EXPOSE 80
|
12 |
+
ENV JULIA_DEPOT_PATH "/home/genie/.julia"
|
13 |
+
ENV GENIE_ENV "dev"
|
14 |
+
ENV GENIE_HOST "0.0.0.0"
|
15 |
+
ENV PORT "8000"
|
16 |
+
ENV WSPORT "8000"
|
17 |
+
|
18 |
+
RUN julia -e 'using Pkg; Pkg.activate("."); Pkg.add("Stipple");Pkg.add("Pluto"); Pkg.precompile()'
|
19 |
+
|
20 |
+
ENTRYPOINT julia --project -e 'using Pkg; Pkg.instantiate(); using Genie; Genie.loadapp(); up(async=false);;'
|