Skip to content

Commit

Permalink
Merge pull request #22 from Quodatum/dev
Browse files Browse the repository at this point in the history
[fix] #18
  • Loading branch information
apb2006 authored Oct 4, 2024
2 parents 65ea670 + 63cdde9 commit 25c1af6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @created 2021-03
# @author="Andy Bunce"
ARG JDK_IMAGE=eclipse-temurin:17-jre
ARG BASEX_VER=https://files.basex.org/releases/10.7/BaseX107.zip
ARG BASEX_VER=https://files.basex.org/releases/11.3/BaseX113.zip

FROM $JDK_IMAGE AS builder
ARG BASEX_VER
Expand All @@ -22,14 +22,14 @@ COPY --from=builder /srv/ /srv
COPY basex/.basex /srv/basex/
COPY basex/custom/* /srv/basex/lib/custom/

# Create a user+ group 'basex'
RUN apt-get update && apt-get install -y adduser
RUN addgroup --gid 1000 basex
RUN adduser --home /srv/basex/ --uid 1000 --gid 1000 basex
RUN chown -R basex:basex /srv/basex
# recent JDK images have user 1000=ubuntu
#RUN apt-get update && apt-get install -y adduser
#RUN addgroup --gid 1000 basex
#RUN adduser --home /srv/basex/ --uid 1000 --gid 1000 basex
RUN chown -R 1000:1000 /srv/basex

# Switch to 'basex'
USER basex
USER 1000

ENV PATH=$PATH:/srv/basex/bin
# JVM options e.g "-Xmx2048m "
Expand Down

0 comments on commit 25c1af6

Please sign in to comment.