More work on CI build

testing
Simon 3 years ago
parent d448a14d0d
commit 23d05649e7

@ -22,10 +22,10 @@ build-dev: # This job runs in the build stage, which runs first.
- buildx - buildx
script: script:
- echo "Compiling the code..." - echo "Compiling the code..."
- cd docker-configs #- cd docker-configs
# - docker buildx build --no-cache -f Dockerfile-proxy -t hacknix/freedmr:development-latest -t gitlab.hacknix.net:5050/hacknix/freedmr:development-latest --platform linux/arm/v7,linux/amd64,linux/i386,linux/arm64 --push . # - docker buildx build --no-cache -f Dockerfile-proxy -t hacknix/freedmr:development-latest -t gitlab.hacknix.net:5050/hacknix/freedmr:development-latest --platform linux/arm/v7,linux/amd64,linux/i386,linux/arm64 --push .
- docker buildx build --no-cache -f Dockerfile-ci -t hacknix/freedmr:development-latest -t gitlab.hacknix.net:5050/hacknix/freedmr:development-latest --platform linux/amd64 --push . - docker buildx build --no-cache -f docker-configs/Dockerfile-ci -t hacknix/freedmr:development-latest -t gitlab.hacknix.net:5050/hacknix/freedmr:development-latest --platform linux/amd64 --push .
- echo "Compile complete." - echo "Compile complete."

@ -19,7 +19,7 @@ FROM python:3.10-alpine
ENTRYPOINT [ "/entrypoint" ] ENTRYPOINT [ "/entrypoint" ]
COPY ../ /opt/freedmr COPY . /opt/freedmr
RUN adduser -D -u 54000 radio && \ RUN adduser -D -u 54000 radio && \
apk update && \ apk update && \
@ -31,6 +31,6 @@ RUN adduser -D -u 54000 radio && \
apk del git gcc musl-dev && \ apk del git gcc musl-dev && \
chown -R radio: /opt/freedmr chown -R radio: /opt/freedmr
COPY entrypoint-proxy /entrypoint COPY docker-configs/entrypoint-proxy /entrypoint
USER radio USER radio

Loading…
Cancel
Save

Powered by TurnKey Linux.