Skip to content

Commit

Permalink
Update dockerfile to use newest ballerina version
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlefs committed Mar 7, 2024
1 parent 7e524d2 commit cc3a3d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM eclipse-temurin:11 AS builder
FROM eclipse-temurin:17 AS builder

RUN apt-get -y update && apt-get install unzip
WORKDIR /app

# install ballerina
ARG BAL_VERSION="2201.7.2"
ARG BAL_VERSION="2201.8.5"
RUN wget --no-verbose https://dist.ballerina.io/downloads/${BAL_VERSION}/ballerina-${BAL_VERSION}-swan-lake.zip
RUN unzip ballerina-${BAL_VERSION}-swan-lake
ENV PATH="${PATH}:/app/ballerina-${BAL_VERSION}-swan-lake/bin"
Expand All @@ -18,14 +18,17 @@ COPY . /app

RUN bal build --observability-included

FROM eclipse-temurin:11-jre
FROM eclipse-temurin:17-jre

LABEL org.opencontainers.image.source="https://github.com/UST-QuAntiL/qhana-backend"

RUN apt-get -y update && apt-get install -y sqlite3 unzip zip

WORKDIR /app

# create unpriviledged user
RUN useradd ballerina

# install proxy
ADD https://raw.githubusercontent.com/UST-QuAntiL/docker-localhost-proxy/v0.3/install_proxy.sh install_proxy.sh
RUN chmod +x install_proxy.sh && ./install_proxy.sh
Expand All @@ -35,9 +38,6 @@ ADD --chown=ballerina https://raw.githubusercontent.com/UST-QuAntiL/docker-local
ADD --chown=ballerina https://raw.githubusercontent.com/UST-QuAntiL/docker-localhost-proxy/v0.3/start_proxy.sh start_proxy.sh
RUN chmod +x start_proxy.sh

# create unpriviledged user
RUN useradd ballerina

# create persistent data volume and change its owner to the new user
RUN mkdir --parents /app/data && chown --recursive ballerina /app
VOLUME /app/data
Expand Down

0 comments on commit cc3a3d1

Please sign in to comment.