generated from fulcrologic/fulcro-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (19 loc) · 789 Bytes
/
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
FROM clojure:latest
WORKDIR /app
# Using Debian, as root
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
# Install yarn
RUN apt-get update && apt-get install -y curl gnupg2
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn
COPY package.json ./package.json
RUN yarn install
CMD npx shadow-cljs release main
COPY . .
EXPOSE 8080
CMD clj -T:build uber
CMD java -jar target/prod_build.jar
# docker build -t backend-development-image -f Dockerfile.backend.development .
# docker run -p 8080:8080 -it backend-development-image
# Navigate to host.docker.internal:8080/index.html OR localhost:8080/index.html