13 lines
285 B
Text
13 lines
285 B
Text
|
FROM git.hydrar.de/hydra/flutter AS build-env
|
||
|
|
||
|
# Copy files to container and build
|
||
|
RUN mkdir /app/
|
||
|
COPY . /app/
|
||
|
WORKDIR /app/
|
||
|
RUN flutter pub get
|
||
|
RUN flutter build web
|
||
|
|
||
|
# Create the run-time image
|
||
|
FROM nginx:1.21.1-alpine
|
||
|
COPY --from=build-env /app/build/web /usr/share/nginx/html/web
|