mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-24 09:04:19 +01:00
🐋 feat: docker base image
This commit is contained in:
30
.github/workflows/push-docker-base-image.yml
vendored
Normal file
30
.github/workflows/push-docker-base-image.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Push docker base image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_DEVBOT_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_DEVBOT_PWD }}
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: src/options/generate/static_files/base_image
|
||||
push: true
|
||||
tags: jina/gpt-dev:latest
|
||||
7
src/options/generate/static_files/base_image/Dockerfile
Normal file
7
src/options/generate/static_files/base_image/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM jinaai/jina:3.14.1-py39-standard
|
||||
|
||||
# update pip
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
# install media dependencies
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg build-essential pkg-config libpoppler-cpp-dev {{apt_get_packages}}
|
||||
@@ -1,8 +1,8 @@
|
||||
FROM jinaai/jina:3.14.1-py39-standard
|
||||
FROM jinaai/gpt-dev:latest
|
||||
# update pip
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg build-essential pkg-config libpoppler-cpp-dev {{apt_get_packages}} && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get install --no-install-recommends -y {{apt_get_packages}}
|
||||
|
||||
## install requirements for the executor
|
||||
COPY requirements.txt .
|
||||
|
||||
Reference in New Issue
Block a user