# FROM python:3.9 # # WORKDIR /code # # COPY ./requirements.txt /code/requirements.txt # # RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # # COPY . . # # CMD ["python", "main.py"] # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] # FROM linuxserver/code-server:latest # USER root # # Start code-server on container startup # CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."] # FROM toandaominh1997/locust:latest # FROM --platform=linux/amd64 ubuntu:latest as build # # # RUN superset fab create-admin \ # # --username admin \ # # --firstname Superset \ # # --lastname Admin \ # # --email admin@superset.com \ # # --password admin # RUN apt-get update && apt-get install -y build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev # USER root # RUN pip install apache-superset # RUN pip install Pillow # ENV FLASK_APP=superset # ENV SUPERSET_SECRET_KEY=tonne1997 # RUN superset db upgrade # RUN superset fab create-admin \ # --username tonne \ # --firstname Superset \ # --lastname Tonne \ # --email tonne@gmail.com \ # --password tonne # # RUN superset load_examples # CMD ["superset", "run", "-p", "7860"] # FROM apache/superset:latest # USER root # ENV SUPERSET_SECRET_KEY=tonne1997 # # Set up a new user named "user" with user ID 1000 # RUN useradd -m -u 1000 user # # # Switch to the "user" user # USER user # # # Set home to the user's home directory # ENV HOME=/home/user \ # PATH=/home/user/.local/bin:$PATH # # WORKDIR /code FROM flink:scala_2.12-java11 USER root CMD ["jobmanager"]