Skip to content

Commit

Permalink
build: fix Docker lints
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Jul 29, 2024
1 parent f49b766 commit b201e69
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ghcr.io/winstxnhdw/capgen:main

ENV APP_PORT 7860
ENV OMP_NUM_THREADS 2
ENV CT2_USE_EXPERIMENTAL_PACKED_GEMM 1
ENV CT2_FORCE_CPU_ISA AVX512
ENV APP_PORT=7860
ENV OMP_NUM_THREADS=2
ENV CT2_USE_EXPERIMENTAL_PACKED_GEMM=1
ENV CT2_FORCE_CPU_ISA=AVX512

EXPOSE $APP_PORT
20 changes: 10 additions & 10 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM python:slim as python-builder
FROM python:slim AS python-builder

ENV POETRY_VIRTUALENVS_CREATE false
ENV POETRY_HOME /opt/poetry
ENV PATH $POETRY_HOME/bin:$PATH
ENV POETRY_VIRTUALENVS_CREATE=false
ENV POETRY_HOME=/opt/poetry
ENV PATH=$POETRY_HOME/bin:$PATH

WORKDIR /

Expand All @@ -13,24 +13,24 @@ RUN $POETRY_HOME/bin/pip install poetry
RUN poetry install --without dev --no-root


FROM python:slim as model-builder
FROM python:slim AS model-builder

RUN pip install huggingface_hub
RUN python -c \
"from huggingface_hub import snapshot_download; snapshot_download('Systran/faster-distil-whisper-large-v3')"


FROM caddy:builder-alpine as caddy-builder
FROM caddy:builder-alpine AS caddy-builder

RUN xcaddy build


FROM python:slim

ENV HOME /home/user
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
ENV SERVER_PORT 5000
ENV HOME=/home/user
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV SERVER_PORT=5000

RUN useradd -m -u 1000 user

Expand Down

0 comments on commit b201e69

Please sign in to comment.