Sign inSign up

hajajmaor/flutter-image

By hajajmaor

•Updated over 3 years ago

Flutter image. Use it to build and serve a web project. The image is built on top of a python image.

Image
1

819

hajajmaor/flutter-image repository overview

⁠flutter image

use it to build flutter apps for the web.

built on top of python:slim-bullseye⁠

⁠Dockerfile example

#stage 1 - builder FROM hajajmaor/flutter-image as builder

ENV workingdir=/app

WORKDIR ${workingdir}

COPY . ${workingdir}

RUN flutter build web

#stage 2 - server

FROM python:slim-bullseye as server

ENV PORT=8080 workingdir=/app

COPY --from=builder /flutter-app/build/web ${workingdir}

WORKDIR ${workingdir}

EXPOSE ${PORT}

CMD [ "python","-m","http.server","${PORT}" ]

Tag summary

Content type

Image

Digest

sha256:f24fa53e4…

Size

527.5 MB

Last updated

over 3 years ago

docker pull hajajmaor/flutter-image