<|start_filename|>feature-selection-tool/src/app/modelsform/modelsform.component.html<|end_filename|>
<div class="container" fxLayout="column" fxLayoutGap="10px" fxLayoutAlign.gt-md="space-around center">
    <div fxFlex="40">
        <mat-card>
            <div fxFlex fxFlexOffset="20px" class="form-size">
                <h2>Select model</h2>
                <form novalidate [formGroup]="paramsForm" (ngSubmit)="onSubmit()" class="mat-size">
                    <p>
                        Model
                        <mat-select placeholder="Model" formControlName="model">
                            <div *ngIf="models && models.length > 0">
                                <mat-option *ngFor="let model of models" [value]="model">
                                    <b>{{model.name}}</b>
                                    {{ " (id: "+  model.id +")," + " created at: "  }}
                                    {{ model.creation_timestamp | date: 'hh:mm:ss MMM dd, yyyy'}}
                                </mat-option>
                            </div>
                        </mat-select>
                    </p>

                    <h3>Select CSV file</h3>
                    <p>
                        <input formControlName="csvPath" type="file" (change)="changeListener($event)">
                    </p>

                    <div fxLayoutAlign="center">
                        <button type="submit" mat-button class="hello-primary" [disabled]="paramsForm.invalid">Submit
                        </button>
                    </div>
                </form>
            </div>
        </mat-card>
    </div>
</div>

<|start_filename|>feature-selection-tool/Dockerfile<|end_filename|>
FROM node:14.7 as build
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app/app
COPY package*.json /usr/src/app/
RUN npm install
COPY . /usr/src/app/
RUN npx ng build --prod
RUN ls /usr/src/app/dist/
FROM nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /usr/src/app/dist/feature-selection-tool/ /usr/share/nginx/html


<|start_filename|>backend/Dockerfile<|end_filename|>
FROM python:3.8
WORKDIR /
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
EXPOSE 8000
RUN apt-get update
RUN apt-get install -y cron
RUN apt-get install -y vim
RUN apt-get -y install rsyslog
COPY . .
RUN chmod 777 /etc/crontab
RUN chmod 777 run.sh
COPY crontab-file /etc/cron.d/crontab-file
RUN chmod 0600 /etc/cron.d/crontab-file
RUN echo "\n" >> /etc/cron.d/crontab-file
ENV PYTHONPATH=.
ENV DJANGO_SETTINGS_MODULE=backend.settings
RUN touch /etc/crontab /etc/cron.*/*
RUN python3 manage.py makemigrations fst_server
RUN python3 manage.py migrate
RUN crontab /etc/cron.d/crontab-file
CMD cron -L15 && gunicorn --bind 0.0.0.0:8000 --timeout 200 backend.wsgi
