Skip to content

Commit

Permalink
docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
kayprogrammer committed Aug 19, 2024
1 parent 42b6227 commit b345f9d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
23 changes: 22 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Stage 1: Build the Flutter web project
FROM cirrusci/flutter:3.10.6 as build
FROM debian:bullseye-slim as build

# Install required dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
unzip \
xz-utils \
libglu1-mesa \
&& rm -rf /var/lib/apt/lists/*

# Install Flutter SDK
WORKDIR /usr/local
RUN curl -LO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.6-stable.tar.xz \
&& tar xf flutter_linux_3.10.6-stable.tar.xz \
&& rm flutter_linux_3.10.6-stable.tar.xz

# Set Flutter in PATH
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"

# Enable Flutter web
RUN flutter channel stable && flutter upgrade && flutter config --enable-web

# Set working directory
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ ENV_FILE_PARAM = --env-file .env

endif

build:
dock-build:
docker-compose up -d --build
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
flutter-web:
build: .
Expand Down

0 comments on commit b345f9d

Please sign in to comment.