Website now dockerized with docker-compose
This commit is contained in:
parent
adfe1c81d1
commit
d55018f564
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
11
docker-compose.yml
Normal 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/
|
Reference in New Issue
Block a user