Skip to content
Snippets Groups Projects
Select Git revision
  • f986bb46e8316fdada5f5110ea79d97ad69bbc11
  • master default protected
  • feat/new-image-formats
  • clickable-select-chevron
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.1
  • 2.11.0
  • 2.10.0
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.0
  • 2.5.2
  • 2.5.1
24 results

hero.mustache

Blame
  • Dockerfile 947 B
    FROM python:3.11
    
    RUN mkdir /app
    
    RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -
    RUN apt-get -y install make autoconf automake libtool pkg-config nodejs git python3-pip
    RUN rm -rf /var/lib/apt/lists/*
    
    WORKDIR /app
    
    COPY . .
    
    # Install Python reqs
    RUN cd server; pip install -r requirements/base.txt
    
    # Install Node.js reqs
    RUN cd frontend; npm install
    
    # Build and copy files
    RUN cd frontend; \
        npm run build; \
        rm -fr ../server/server/templates ../server/server/static; \
        mkdir ../server/server/templates ../server/server/static; \
        cp dist/index.html ../server/server/templates/; \
        cp dist/static/* ../server/server/static/; \
        cp dist/favicon.ico ../server/server/static/; \
        rm -fr dist
    
    RUN bash -c "adduser --disabled-login --quiet --gecos app app &&  \
                 chmod -R o+r /app/ && \
                 chmod o+x /app/server/run.sh"
    USER app
    
    WORKDIR /app/server
    
    EXPOSE 8000
    CMD ["bash", "run.sh"]