-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
ARG BASE_IMAGE=python:3.12-slim
FROM $BASE_IMAGE
LABEL maintainer="Yuchen Jin <Yuchen.Jin@aramcoamericas.com>" \
author="Yuchen Jin <cainmagi@gmail.com>" \
description="Developer's environment for Dash Picture Annotation." \
version="1.0.0"
# Set configs
ARG INSTALL_MODE=default
# The following args are temporary but necessary during the deployment.
# Do not change them.
ARG DEBIAN_FRONTEND=noninteractive
# Force the user to be root
USER root
WORKDIR /app
COPY ./docker/*.txt /app/
# Install dependencies
COPY ./docker/install.sh /app/
RUN bash /app/install.sh $INSTALL_MODE
# Copy codes
COPY ./dash_picture_annotation /app/dash_picture_annotation
COPY ./src /app/src
COPY ./tests /app/tests
COPY ./version /app/version
COPY ./*.* /app/
# Finalize
COPY ./docker/entrypoint.sh /app/
EXPOSE 8080
ENTRYPOINT ["/bin/bash", "--login", "-i", "/app/entrypoint.sh"]
CMD [""]