This commit is contained in:
brooke 2025-03-17 21:52:49 -04:00
parent efdf2c0cb1
commit 062432f843
2 changed files with 10 additions and 19 deletions

View file

@ -28,15 +28,10 @@ jobs:
- run: apt update && apt install iptables -y
- name: Build and Push
uses: https://github.com/docker/setup-docker-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
build-args: |
LAP_VER=${{ github.event.inputs.version }}
tags: |
fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}
- name: Build Docker image
run: |
docker buildx build --build-arg LAP_VAR=${{ github.event.inputs.version }} -t fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} .
- name: Push Docker image
run: |
docker push fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}

View file

@ -1,4 +1,4 @@
FROM debian:bookworm-slim
FROM debian:trixie-slim
ARG LAP_VER
ENV VERSION=${LAP_VER}
@ -7,18 +7,14 @@ ENV VERSION=${LAP_VER}
RUN apt update && \
apt install -y curl
RUN echo "Installing lapdev package from GitHub." && \
RUN echo "Installing lapdev package." && \
curl -sL -o /tmp/lapdev_${VERSION}-1_amd64.deb https://fung.uy/mycosystems/lapdev/releases/download/v${VERSION}/lapdev_${VERSION}-1_amd64.deb && \
sudo apt install -y /tmp/lapdev_${VERSION}-1_amd64.deb
dpkg -i /tmp/lapdev_${VERSION}-1_amd64.deb
RUN apt-get clean
RUN rm /tmp/*
RUN useradd -r -s /bin/false lapdev && \
mkdir -p /var/lib/lapdev && \
chown lapdev:lapdev /var/lib/lapdev
WORKDIR /var/lib/lapdev
CMD ["/usr/bin/lapdev"]