You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
Docker
55 lines
1.2 KiB
Docker
FROM 192.168.10.94:5000/generalai:v1
|
|
|
|
# Set timezone
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
# Install necessary packages
|
|
RUN apt-get update && apt-get install -y \
|
|
# python3-pip \
|
|
# mysql-client \
|
|
default-mysql-client \
|
|
redis-tools \
|
|
&& apt-get clean
|
|
|
|
# ENV APP_HOME=/app/lemon
|
|
|
|
RUN mkdir -p /app/lemon
|
|
RUN mkdir -p /app/fileupload
|
|
RUN mkdir -p /app/log
|
|
# Set working directory
|
|
WORKDIR /app/lemon
|
|
|
|
# Copy application files
|
|
COPY website/ ./website/
|
|
COPY dist/ ./dist/
|
|
|
|
# COPY mysql_app.sql /app/lemon/
|
|
|
|
# Copy init script and make it executable
|
|
# COPY mysql_init.sh /app/lemon/
|
|
# RUN chmod +x /app/lemon/mysql_init.sh
|
|
|
|
# Install Python dependencies
|
|
# RUN pip3 install -r /app/lemon/website/requirements.txt
|
|
|
|
# Copy supervisor configuration
|
|
COPY supervisor.conf /etc/supervisor/conf.d/lemon.conf
|
|
|
|
# Copy nginx configuration
|
|
# COPY nginx.conf /etc/nginx/sites-available/lemon
|
|
# RUN ln -s /etc/nginx/sites-available/lemon /etc/nginx/sites-enabled/
|
|
|
|
|
|
# COPY entrypoint.sh /app/lemon/entrypoint.sh
|
|
# RUN chmod +x /app/lemon/entrypoint.sh
|
|
COPY entrypoint.sh /
|
|
RUN sed -i 's/\r//' /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Expose port
|
|
|
|
EXPOSE 80
|
|
# VOLUME /data
|
|
# Start services
|
|
# ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
|
|
ENTRYPOINT [] |