Website now dockerized with docker-compose

This commit is contained in:
Lucien Cartier-Tilet 2019-12-26 16:23:50 +01:00
parent adfe1c81d1
commit d55018f564
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 27 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -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

11
docker-compose.yml Normal file
View File

@ -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/