Fares 10 kuukautta sitten
vanhempi
sitoutus
1d98ab4222
4 muutettua tiedostoa jossa 3 lisäystä ja 55 poistoa
  1. 1 0
      .gitignore
  2. 2 2
      .vscode/sftp.json
  3. 0 22
      shelf/Dockerfile
  4. 0 31
      shelf/docker-compose.yml

+ 1 - 0
.gitignore

@@ -1,4 +1,5 @@
 # https://dart.dev/guides/libraries/private-files
 # Created by `dart pub`
 .dart_tool/
+.vscode/
 upload/

+ 2 - 2
.vscode/sftp.json

@@ -6,7 +6,7 @@
     "username": "debian",
     "password":"Farrous08",
     "remotePath": "/home/debian",
-    "uploadOnSave": false,
-    "useTempFile": false,
+    "uploadOnSave": true,
+    "useTempFile": true,
     "openSsh": false
 }

+ 0 - 22
shelf/Dockerfile

@@ -1,22 +0,0 @@
-# Use latest stable channel SDK.
-FROM dart:stable AS build
-
-# Resolve app dependencies.
-WORKDIR /app
-COPY pubspec.* ./
-RUN dart pub get
-
-# Copy app source code (except anything in .dockerignore) and AOT compile app.
-COPY . .
-RUN dart pub get --offline
-RUN dart compile exe bin/main.dart -o bin/main
-
-# Build minimal serving image from AOT-compiled `/main`
-# and the pre-built AOT-runtime in the `/runtime/` directory of the base image.
-FROM scratch
-COPY --from=build /runtime/ /
-COPY --from=build /app/bin/main /app/bin/
-
-# Start server.
-EXPOSE 8080
-CMD ["/app/bin/main"]

+ 0 - 31
shelf/docker-compose.yml

@@ -1,31 +0,0 @@
-version: '3.8'
-
-# services:
-#   dart_server:
-#     image: google/dart
-#     volumes:
-#       - ./app:/app
-#     working_dir: /app
-#     command: dart run bin/server.dart
-#     ports:
-#       - "8082:8080"
-
-services:
-  dart-server:
-    build:
-      context: .
-      dockerfile: Dockerfile
-    volumes:
-      - ./app:/app
-    ports:
-      - "8082:8080"
-    environment:
-      # Add any environment variables needed for your application here
-      # Example: MY_ENV_VAR: "value"
-    restart: unless-stopped
-
-
-networks:
-  default:
-    name: caddy-network
-    external: true