Skip to content

Commit ee4acf7

Browse files
committed
fix: Update Ballerina SDK extraction path and add version check
1 parent b796ead commit ee4acf7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ RUN apt-get update && apt-get install -y \
1313
# Download and extract Ballerina SDK
1414
RUN curl -L https://dist.ballerina.io/downloads/2201.12.0/ballerina-2201.12.0-swan-lake.zip -o ballerina.zip && \
1515
unzip -t ballerina.zip && \
16-
unzip ballerina.zip -d /opt/ballerina && \
17-
rm ballerina.zip
16+
unzip ballerina.zip -d /opt && \
17+
rm ballerina.zip && \
18+
chmod +x /opt/ballerina-2201.12.0-swan-lake/bin/bal && \
19+
/opt/ballerina-2201.12.0-swan-lake/bin/bal version
1820
ENV PATH="/opt/ballerina-2201.12.0-swan-lake/bin:${PATH}"
1921

2022
# Build the backend
@@ -36,4 +38,4 @@ USER 10001
3638

3739
# Prepare the final image
3840
WORKDIR /app
39-
CMD ["sh", "-c", "java -jar /app/Back-End/target/bin/ResourceHub.jar & npx serve -s /app/Front-End/build -l 80"]
41+
CMD ["sh", "-c", "java -jar /app/Back-End/target/bin/ResourceHub.jar & npx serve -s /app/Front-End/build -l 80"]

0 commit comments

Comments
 (0)