update
This commit is contained in:
parent
efdf2c0cb1
commit
062432f843
2 changed files with 10 additions and 19 deletions
19
.github/workflows/container.yml
vendored
19
.github/workflows/container.yml
vendored
|
@ -28,15 +28,10 @@ jobs:
|
||||||
|
|
||||||
- run: apt update && apt install iptables -y
|
- run: apt update && apt install iptables -y
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Build Docker image
|
||||||
uses: https://github.com/docker/setup-docker-action@v4
|
run: |
|
||||||
with:
|
docker buildx build --build-arg LAP_VAR=${{ github.event.inputs.version }} -t fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }} .
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: ./
|
- name: Push Docker image
|
||||||
file: ./Dockerfile
|
run: |
|
||||||
platforms: linux/amd64
|
docker push fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}
|
||||||
push: true
|
|
||||||
build-args: |
|
|
||||||
LAP_VER=${{ github.event.inputs.version }}
|
|
||||||
tags: |
|
|
||||||
fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:bookworm-slim
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
ARG LAP_VER
|
ARG LAP_VER
|
||||||
ENV VERSION=${LAP_VER}
|
ENV VERSION=${LAP_VER}
|
||||||
|
@ -7,18 +7,14 @@ ENV VERSION=${LAP_VER}
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y curl
|
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 && \
|
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 apt-get clean
|
||||||
|
|
||||||
RUN rm /tmp/*
|
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
|
WORKDIR /var/lib/lapdev
|
||||||
|
|
||||||
CMD ["/usr/bin/lapdev"]
|
CMD ["/usr/bin/lapdev"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue