protevus/Dockerfile

23 lines
506 B
Docker
Raw Permalink Normal View History

2022-04-26 00:11:53 +00:00
FROM dart:latest
2017-01-15 00:15:20 +00:00
2022-04-26 00:11:53 +00:00
# Copy all the source code
COPY ./config /app/config
COPY ./lib /app/lib
COPY ./bin /app/bin
COPY ./views /app/views
COPY ./web /app/web
COPY ./*.yaml /app/
2017-01-15 00:15:20 +00:00
2022-04-26 00:11:53 +00:00
WORKDIR /app
RUN dart pub upgrade
2018-12-28 02:14:42 +00:00
2022-04-26 00:11:53 +00:00
# Optionally build generated sources.
2018-12-28 02:14:42 +00:00
# RUN pub run build_runner build
2017-01-15 00:15:20 +00:00
2022-04-26 00:11:53 +00:00
# Set environment, start server in JIT mode
2017-01-15 00:15:20 +00:00
ENV ANGEL_ENV=production
2017-01-15 00:25:33 +00:00
EXPOSE 3000
2022-04-26 00:11:53 +00:00
CMD dart ./bin/prod.dart -p 3000 -a 0.0.0.0
# Use -j flag to set higher number of isolates
#CMD dart ./bin/prod.dart -p 3000 -a 0.0.0.0 -j 50