Skip to content

Commit

Permalink
adapt docker file for matchbox user
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Apr 22, 2024
1 parent f7a29ba commit e61ea81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ docker-compose exec -T matchbox-test-db pg_restore -c -U matchbox -d matchbox <
cd matchbox-server
mvn package -DskipTests
docker build -t matchbox .
docker run -d --name matchbox -p 8080:8080 -v /Users/oliveregger/apps/:/apps/ matchbox
docker run -d --name matchbox -p 8080:8080 -v /Users/oegger/Documents/github/matchbox/matchbox-server/with-cda:/config matchbox
```

Server will then be accessible at http://localhost:8080/matchboxv3/fhir/metadata.
Expand Down
7 changes: 7 additions & 0 deletions matchbox-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ COPY ./target/matchbox.jar /matchbox.jar

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
RUN mkdir -p /data/hapi/lucenefiles && chmod 775 /data/hapi/lucenefiles
RUN apk --purge del

# Create a new user and switch to it
RUN adduser --disabled-password --gecos '' matchbox
RUN mkdir -p /database && chown matchbox:matchbox /database

USER matchbox

ENTRYPOINT java -Xmx3072M -jar /matchbox.jar -Dspring.config.additional-location=optional:file:/config/application.yaml,optional:file:application.yaml

Expand Down

0 comments on commit e61ea81

Please sign in to comment.