Skip to content

Commit fa67fcb

Browse files
authored
Merge pull request #6 from speechmatics/fix-CVEs
CVE fixes
2 parents b2b655c + 627a3b9 commit fa67fcb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM python:3.11-alpine as builder
1+
FROM python:3.12-alpine AS builder
22
RUN mkdir /install
33
WORKDIR /install
44
COPY requirements.txt /requirements.txt
55
RUN pip install --prefix="/install" -r /requirements.txt
66

77

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

18-
FROM production as base-dev
18+
FROM production AS base-dev
1919
RUN apk add --no-cache make
2020
COPY ./requirements-dev.txt /requirements-dev.txt
2121
RUN pip install -r /requirements-dev.txt
2222

23-
FROM base-dev as lint
23+
FROM base-dev AS lint
2424
WORKDIR /
2525
COPY ./Makefile /Makefile
2626
COPY ./setup.cfg /setup.cfg
2727
COPY ./stream_transcriber /stream_transcriber
2828
ENTRYPOINT ["make", "lint-local"]
2929

30-
FROM base-dev as unittest
30+
FROM base-dev AS unittest
3131
WORKDIR /
3232
COPY ./stream_transcriber /stream_transcriber
3333
COPY ./unittests /unittests

0 commit comments

Comments
 (0)