Add basic containerization

Having issues with javascript coming up empty though...
This commit is contained in:
doomsdayrs 2024-03-28 18:32:31 -04:00
parent 06f3340d20
commit e9ebea3ed6
No known key found for this signature in database
GPG Key ID: DF550F49A97F8A4B
2 changed files with 29 additions and 0 deletions

26
Containerfile Normal file
View File

@ -0,0 +1,26 @@
# Start rust build process
FROM docker.io/library/rust:latest as builder
# Set working directory to /src, to keep things clean
WORKDIR /src
# Copy source files to /src
COPY . /src
# Build
RUN cargo install --path=./ && cargo clean -v
# Swap to fedora runtime for the final result
FROM fedora:latest
# Copy binary to resulting image
COPY --from=builder /usr/local/cargo/bin/ibis /bin/ibis
# Install postgresql library
RUN sudo dnf install -y libpq
# Set working dir to /app for mounting configs
WORKDIR /app
# Set command to execute
CMD ["ibis"]

3
scripts/build-container.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
podman build --tag ibis:git ..