1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-07-31 04:42:25 -04:00

specify Dockerfile-dev

This commit is contained in:
Hemna 2022-11-25 10:08:46 -05:00
parent d1a0a988f2
commit 4111d16aaf
2 changed files with 5 additions and 5 deletions

View File

@ -51,9 +51,9 @@ jobs:
- name: Build the Docker image - name: Build the Docker image
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./docker context: "{{defaultContext}}:docker"
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
file: Dockerfile-dev file: ./Dockerfile-dev
build-args: | build-args: |
BRANCH=${{ steps.branch-name.outputs.current_branch }} BRANCH=${{ steps.branch-name.outputs.current_branch }}
push: true push: true

View File

@ -2,14 +2,14 @@
FROM ubuntu:focal as aprsd FROM ubuntu:focal as aprsd
# Dockerfile for building a container during aprsd development. # Dockerfile for building a container during aprsd development.
ARG branch ARG BRANCH=master
ARG UID ARG UID
ARG GID ARG GID
ENV APRS_USER=aprs ENV APRS_USER=aprs
ENV HOME=/home/aprs ENV HOME=/home/aprs
ENV APRSD=http://github.com/craigerl/aprsd.git ENV APRSD=http://github.com/craigerl/aprsd.git
ENV APRSD_BRANCH=${branch:-master} ENV APRSD_BRANCH=${BRANCH:-master}
ENV VIRTUAL_ENV=$HOME/.venv3 ENV VIRTUAL_ENV=$HOME/.venv3
ENV UID=${UID:-1000} ENV UID=${UID:-1000}
ENV GID=${GID:-1000} ENV GID=${GID:-1000}
@ -40,7 +40,7 @@ RUN cat $HOME/.bashrc
USER root USER root
WORKDIR $HOME WORKDIR $HOME
RUN mkdir $INSTALL RUN mkdir $INSTALL
RUN git clone -b $APRSD_BRANCH $APRSD $INSTALL/aprsd RUN git clone -b $BRANCH $APRSD $INSTALL/aprsd
RUN cd $INSTALL/aprsd && pip3 install -v . RUN cd $INSTALL/aprsd && pip3 install -v .
RUN ls -al /usr/local/bin RUN ls -al /usr/local/bin
RUN ls -al /usr/bin RUN ls -al /usr/bin