17 lines
727 B
Docker
17 lines
727 B
Docker
FROM ubuntu:22.04
|
|
|
|
# Switch to root user for installation
|
|
USER root
|
|
|
|
RUN apt-get update && apt-get install -y git wget gpg apt-transport-https apt-utils
|
|
RUN wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/dart.gpg
|
|
RUN echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | tee /etc/apt/sources.list.d/dart_stable.list
|
|
RUN apt-get update && apt-get install -y dart
|
|
ENV PATH="$PATH:/usr/lib/dart/bin"
|
|
|
|
RUN cd /root && git clone https://https://git.marinodev.com/MarinoDev/FBLA24.git
|
|
WORKDIR /root/FBLA24/fbla-api
|
|
RUN dart pub install
|
|
|
|
EXPOSE 8000
|
|
ENTRYPOINT dart run ./lib/fbla_api.dart |