Commit 4c4f5476 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added file service port forwarding to Docker image

parent e302b098
Pipeline #2216 passed with stages
in 2 minutes and 26 seconds
FROM openjdk:14-jdk-alpine
ARG JAR_FILE=target/vospace.jar
COPY ${JAR_FILE} vospace.jar
ENTRYPOINT ["java","-jar","/vospace.jar"]
RUN apk add socat
ADD docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
#!/bin/sh
if [ ! -z "$FILE_SERVICE_PORT" ]; then
socat TCP-LISTEN:$FILE_SERVICE_PORT,fork TCP:vospace_file_service:$FILE_SERVICE_PORT &
fi
java -jar /vospace.jar
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment