Skip to content

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
billbsing committed Apr 8, 2024
1 parent 196ff5e commit c31700d
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@

# base docker on latest node but install java 17
# currently this is the only working solution for arm64 builds.
FROM node:latest
# FROM node:latest

# we can base the docker image on java 23, but install node
# FROM openjdk:23-bookworm
FROM openjdk:23-bookworm

ENV HOME=/home/convex-web


# install the standard java 17
RUN apt-get update
RUN apt-cache search jdk
RUN apt-get install -y curl openjdk-17-jdk

# install the standard java 17 from the node:latest build
# RUN apt-cache search jdk
# RUN apt-get install -y curl openjdk-17-jdk


# install node 18.x if we are using the java base docker image
# RUN curl -sL https://deb.nodesource.com/setup_18.x | bash
# RUN apt-get install -y nodejs
# RUN curl -L https://www.npmjs.com/install.sh | sh
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash
RUN apt-get install -y nodejs
RUN curl -L https://www.npmjs.com/install.sh | sh

# for arm64 only
RUN apt-get install -y liblmdb-dev

# install latest clojure
RUN curl -L -O https://github.com/clojure/brew-install/releases/latest/download/posix-install.sh
Expand All @@ -32,6 +35,9 @@ WORKDIR $HOME

ADD . $HOME

# remove old jar files
RUN rm -f $HOME/*.jar

RUN npm install
RUN npm run app:release
RUN npm run styles:release
Expand Down

0 comments on commit c31700d

Please sign in to comment.