UNCLASSIFIED

Commit 87af2d50 authored by gavin.scallon's avatar gavin.scallon
Browse files

Merge branch 'dockerfile-fix' into 'development'

Dockerfile fix

See merge request !13
parents 76a4cf4f 714d2c98
Pipeline #84703 passed with stages
in 12 minutes and 48 seconds
...@@ -19,26 +19,25 @@ ARG UID=1000 ...@@ -19,26 +19,25 @@ ARG UID=1000
ARG GID=1000 ARG GID=1000
USER root USER root
WORKDIR / WORKDIR /tmp
RUN groupadd --gid $GID $GROUPNAME && \ COPY dumb-init beast-core.tar.gz config/appsettings.json config/config.json scripts/start.sh LICENSE ./
useradd --uid $UID --gid $GID $USERNAME
COPY --chown=1000:1000 LICENSE beast-core.tar.gz ./
COPY dumb-init /usr/local/bin/dumb-init
RUN chmod 755 /usr/local/bin/dumb-init && \ RUN groupadd --gid $GID $GROUPNAME && \
yum install -y libicu curl && \ useradd --uid $UID --gid $GID $USERNAME && \
yum clean all && \ yum install -y libicu curl && \
rm -rf /var/cache/dnf && \ yum clean all && \
tar -zxf beast-core.tar.gz && \ rm -rf /var/cache/dnf && \
chown -R $UID:$GID ./beast-core/ && \ tar -zxf beast-core.tar.gz && \
rm beast-core.tar.gz rm beast-core.tar.gz && \
chown -R $UID:$GID /tmp/* && \
COPY --chown=1000:1000 scripts/start.sh /beast-core/ chmod 755 dumb-init start.sh && \
mv beast-core /beast-core && \
COPY config/appsettings.json config/config.json /beast-core/server/ mv config.json /beast-core/server && \
mv start.sh /beast-core && \
mv dumb-init /usr/local/bin &&\
mv LICENSE / && \
rm -rf ./*
WORKDIR /beast-core/server WORKDIR /beast-core/server
......
Markdown is supported
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