test new slim docker image

This commit is contained in:
Alberto Xamin 2021-06-26 12:18:50 +02:00
parent 57e18a1121
commit 4e317728a4
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 11 additions and 5 deletions

View File

@ -31,7 +31,7 @@ jobs:
--platform linux/amd64,linux/arm64 \
--output "type=image,push=false" \
--tag albertoxamin/bang:dev \
--file ./Dockerfile ./
--file ./Dockerfile-armv7 ./
-
name: Docker Buildx (build)
run: |
@ -56,7 +56,7 @@ jobs:
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--output "type=image,push=true" \
--tag albertoxamin/bang:dev \
--file ./Dockerfile ./
--file ./Dockerfile-armv7 ./
-
name: Inspect image
run: |

View File

@ -2,10 +2,16 @@ FROM node:lts-alpine as builder
COPY ./frontend .
RUN npm install
RUN npm run build
FROM python:3.7.10-stretch
FROM python:3.7.10-stretch as pybuilder
WORKDIR /code
COPY ./backend /code/
RUN pip install --user -r requirements.txt
FROM python:3.7.10-slim-stretch as app
COPY --from=pybuilder /root/.local /root/.local
COPY --from=pybuilder /code /dist
COPY --from=builder ./dist /dist/
COPY ./backend /dist/
WORKDIR /dist
RUN pip install -r requirements.txt
EXPOSE 5001
ENTRYPOINT ["python", "/dist/__init__.py"]