Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy-only dockerfile - just the binary injected in a chiseled image, feel free to use / adjust as you wish #776

Open
raul-gherman opened this issue Feb 2, 2025 · 0 comments

Comments

@raul-gherman
Copy link

################################
# Pull base image
################################

FROM ubuntu:latest AS base

################################
# Set Args
################################

ARG PGWEB_VERSION="0.16.2"
ARG PGWEB_OS="linux"
ARG PGWEB_ARCH="amd64"

RUN \
    # Update
    apt-get update -y && \
    # Install Unzip
    apt-get install unzip -y && \
    # gonna need wget
    apt-get install wget -y

WORKDIR /technimal

################################
# Install PgWeb
################################

# Download PgWeb for linux
RUN wget https://github.com/sosedoff/pgweb/releases/download/v${PGWEB_VERSION}/pgweb_${PGWEB_OS}_${PGWEB_ARCH}.zip

# Unzip
RUN unzip pgweb_${PGWEB_OS}_${PGWEB_ARCH}.zip && \
    mv ./pgweb_${PGWEB_OS}_${PGWEB_ARCH} ./pgweb


################################
# Inject binary in barebones worker
################################

FROM raulgherman/technimal-runner:22b37d8b512f179c203765b74cc3560769173c3d

WORKDIR /technimal

COPY --from=base /technimal/pgweb /technimal

EXPOSE 8081

ENTRYPOINT ["/technimal/pgweb", "--bind=0.0.0.0", "--listen=8081"]
@raul-gherman raul-gherman changed the title deploy-only dockerfile - only the binary injected in a chiseled image deploy-only dockerfile - just the binary injected in a chiseled image, feel free to use / adjust as you wish Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant