Compare commits
No commits in common. "master" and "v6/angel3-basic" have entirely different histories.
master
...
v6/angel3-
1 changed files with 7 additions and 16 deletions
23
Dockerfile
23
Dockerfile
|
@ -1,23 +1,14 @@
|
||||||
FROM dart:latest
|
FROM google/dart:latest
|
||||||
|
|
||||||
# Copy all the source code
|
COPY ./ ./
|
||||||
COPY ./config /app/config
|
|
||||||
COPY ./lib /app/lib
|
|
||||||
COPY ./bin /app/bin
|
|
||||||
COPY ./views /app/views
|
|
||||||
COPY ./web /app/web
|
|
||||||
COPY ./*.yaml /app/
|
|
||||||
|
|
||||||
WORKDIR /app
|
# Install dependencies, pre-build
|
||||||
RUN dart pub upgrade
|
RUN pub get
|
||||||
|
|
||||||
# Optionally build generated sources.
|
# Optionally build generaed sources.
|
||||||
# RUN pub run build_runner build
|
# RUN pub run build_runner build
|
||||||
|
|
||||||
# Set environment, start server in JIT mode
|
# Set environment, start server
|
||||||
ENV ANGEL_ENV=production
|
ENV ANGEL_ENV=production
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD dart ./bin/prod.dart -p 3000 -a 0.0.0.0
|
CMD dart bin/prod.dart
|
||||||
|
|
||||||
# Use -j flag to set higher number of isolates
|
|
||||||
#CMD dart ./bin/prod.dart -p 3000 -a 0.0.0.0 -j 50
|
|
||||||
|
|
Loading…
Reference in a new issue