forked from shamansir/noodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (30 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM --platform=linux/amd64 tprimke/purescript:0.14.3
# Create app directory
WORKDIR /app
COPY . .
# Install PureScript global
# RUN npm cache clean --force && \
# npm install -g purescript@0.14 --unsafe-perm spago parcel-bundler
RUN npm cache clean --force && \
npm install -g --unsafe-perm parcel@next && \
npm install
RUN spago -x ./example.dhall build
RUN apt-get -qq -y update; apt-get install -qq -y curl wget
RUN curl https://hydra.ojack.xyz/bundle.min.js\?1.2.6 -o ./hydra.bundle.v1.2.6.min.js
# RUN wget https://hydra.ojack.xyz/bundle.min.js\?1.2.6 -O ./hydra.bundle.v1.2.6.min.js
RUN mkdir static
RUN parcel -V
RUN parcel build --dist-dir ./static index.html
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
# RUN mkdir output
COPY --from=0 /app/static .
# COPY --from=0 /app/output ./output
# COPY --from=0 /app/index.html .
#RUN mkdir ./css
#RUN mkdir ./example-css
#COPY --from=0 /app/src/App/App.css ./css/
# COPY --from=0 /app/examples/raydraw/Toolkit/Render/Html/*.css ./example-css/
#COPY --from=0 /app/index.docker.css ./index.css
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080