add dockerfile to build container
This commit is contained in:
parent
3cb0fb5337
commit
6848538fd6
2 changed files with 28 additions and 14 deletions
18
.github/workflows/container.yml
vendored
18
.github/workflows/container.yml
vendored
|
@ -2,19 +2,10 @@ name: Release
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
lapdev_version:
|
version:
|
||||||
description: "Lapdev version for release"
|
description: "Enter the version to build"
|
||||||
required: true
|
required: true
|
||||||
default: "v0.1.0"
|
default: "v0.1.0"
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
working-directory: ./lapdev
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
|
||||||
|
@ -44,7 +35,6 @@ jobs:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
HUGO_VERSION=0.138.0
|
LAP_VER=${{ github.event.inputs.version }}
|
||||||
NODE_VERSION=22.5.0
|
|
||||||
tags: |
|
tags: |
|
||||||
git.myco.systems/mycosystems/web-ci:latest
|
fung.uy/mycosystems/lapdev:${{ github.event.inputs.version }}
|
||||||
|
|
24
Dockerfile
24
Dockerfile
|
@ -0,0 +1,24 @@
|
||||||
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
ARG LAP_VER
|
||||||
|
ENV VERSION=${LAP_VER}
|
||||||
|
|
||||||
|
# Install required dependencies
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y curl
|
||||||
|
|
||||||
|
RUN echo "Installing lapdev package from GitHub." && \
|
||||||
|
curl -sL -o /tmp/lapdev_${VERSION}-1_amd64.deb https://github.com/lapce/lapdev/releases/download/v${VERSION}/lapdev_${VERSION}-1_amd64.deb && \
|
||||||
|
sudo apt install -y /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"]
|
Loading…
Add table
Reference in a new issue