Skip to content

Commit

Permalink
Merge pull request #6 from speechmatics/fix-CVEs
Browse files Browse the repository at this point in the history
CVE fixes
  • Loading branch information
anjz authored Jul 22, 2024
2 parents b2b655c + 627a3b9 commit fa67fcb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.11-alpine as builder
FROM python:3.12-alpine AS builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --prefix="/install" -r /requirements.txt


FROM python:3.11-alpine as production
FROM python:3.12-alpine AS production
RUN apk upgrade -U && apk add ffmpeg
COPY --from=builder /install /usr/local
COPY ./stream_transcriber /stream_transcriber
Expand All @@ -15,19 +15,19 @@ EXPOSE 8000
ENTRYPOINT ["python"]
CMD ["-m", "stream_transcriber.server"]

FROM production as base-dev
FROM production AS base-dev
RUN apk add --no-cache make
COPY ./requirements-dev.txt /requirements-dev.txt
RUN pip install -r /requirements-dev.txt

FROM base-dev as lint
FROM base-dev AS lint
WORKDIR /
COPY ./Makefile /Makefile
COPY ./setup.cfg /setup.cfg
COPY ./stream_transcriber /stream_transcriber
ENTRYPOINT ["make", "lint-local"]

FROM base-dev as unittest
FROM base-dev AS unittest
WORKDIR /
COPY ./stream_transcriber /stream_transcriber
COPY ./unittests /unittests
Expand Down

0 comments on commit fa67fcb

Please sign in to comment.