BugVault/Dockerfile

40 lines
No EOL
763 B
Docker

FROM git.zontreck.com/packages/flutter:latest as BUILDER
WORKDIR /app
COPY ./pubspec.yaml ./
COPY ./cli ./
COPY ./lib ./
COPY ./android ./
COPY ./linux ./
COPY ./ios ./
COPY ./macos ./
COPY ./test ./
COPY ./web ./
COPY ./windows ./
COPY ./analysis_options.yaml ./
RUN dart pub get
RUN dart fix --apply
RUN dart compile exe -o bugvaultd cli/server.dart
FROM git.zontreck.com/packages/debian:base
LABEL author Tara Piccari
LABEL email tarapiccari@gmail.com
ENV BUGVAULT_DATA_DIRECTORY /data
COPY --from=BUILDER /app/bugvaultd /sbin/bugvaultd
SHELL ["/bin/bash", "-c"]
COPY ./docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /data
RUN useradd -s /bin/bash -d /data -M bugvault
USER bugvault:bugvault
ENTRYPOINT [ "/entrypoint.sh" ]