diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..51cfa4c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM google/dart:2.6 + +WORKDIR /app + +RUN mkdir /pub-cache +ENV PUB_CACHE=/pub-cache +ENV PATH="${PATH}:/pub-cache/bin" +RUN pub global activate webdev +# RUN pub global activate stagehand + +ADD pubspec.* /app/ +RUN pub get +ADD . /app/ +RUN pub get --offline + +# EXPOSE 8010 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3b2af8f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3' + +services: + web: + build: . + ports: + - "8010:8010" + command: webdev serve --release web:8010 --hostname 0.0.0.0 + restart: always + volumes: + - ./web/:/app/web/