forked from Juniper/nita-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (32 loc) · 1.49 KB
/
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
39
40
41
42
# ********************************************************
#
# Project: nita-webapp
#
# Copyright (c) Juniper Networks, Inc., 2021. All rights reserved.
#
# Notice and Disclaimer: This code is licensed to you under the Apache 2.0 License (the "License"). You may not use this code except in compliance with the License. This code is not an official Juniper product. You can obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.html
#
# SPDX-License-Identifier: Apache-2.0
#
# Third-Party Code: This code may depend on other components under separate copyright notice and license terms. Your use of the source code for those components is subject to the terms and conditions of the respective license as noted in the Third-Party source code file.
#
# ********************************************************
FROM python:3.8-slim-bullseye
ENV WEBAPP_USER vagrant
ENV WEBAPP_PASS vagrant123
ENV JENKINS_USER admin
ENV JENKINS_PASS admin
WORKDIR /app
RUN apt-get update -y
RUN apt-get install gcc default-mysql-client default-libmysqlclient-dev wget unzip -y
#COPY nita-yaml-to-excel/ yaml-to-excel/
RUN wget --no-check-certificate https://github.com/Juniper/nita-yaml-to-excel/archive/refs/heads/22.8.zip
RUN unzip 22.8.zip
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY nita.properties /etc/nita.properties
COPY build-and-test-webapp/ build-and-test-webapp/
RUN mkdir /var/log/nita-webapp
RUN touch /var/log/nita-webapp/server.log
LABEL net.juniper.framework="NITA"
EXPOSE 8000