Asd22 Entertainment commited on
Commit
1b4e3bc
·
1 Parent(s): cf5a34c

trying to build

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -15
Dockerfile CHANGED
@@ -1,23 +1,11 @@
1
  FROM dart:stable AS build
2
-
3
- # Set the working directory
4
  WORKDIR /app
5
-
6
- # Copy project files to the container
7
  COPY . .
8
-
9
- # Fetch dependencies
10
  RUN dart pub get
11
-
12
- # Ensure the Dart tool directory is writable
13
  RUN mkdir -p /app/.dart-tool /tmp/.dart && chmod -R 777 /app/.dart-tool /tmp/.dart
14
-
15
- # Set the Dart configuration directory to a writable path
16
  ENV DART_CONFIG_DIR=/tmp/.dart
17
  ENV DART_TOOL_DIR=/app/.dart-tool
18
-
19
- # Expose the desired port
20
  EXPOSE 8080
21
-
22
- # Run the Dart application
23
- CMD ["dart", "run", "bin/main"]
 
1
  FROM dart:stable AS build
 
 
2
  WORKDIR /app
 
 
3
  COPY . .
 
 
4
  RUN dart pub get
 
 
5
  RUN mkdir -p /app/.dart-tool /tmp/.dart && chmod -R 777 /app/.dart-tool /tmp/.dart
 
 
6
  ENV DART_CONFIG_DIR=/tmp/.dart
7
  ENV DART_TOOL_DIR=/app/.dart-tool
8
+ RUN dart --disable-analytics
9
+ ENV DART_DISABLE_ANALYTICS=true
10
  EXPOSE 8080
11
+ CMD ["dart", "run", "bin/main"]