-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (27 loc) · 1.02 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
FROM registry.access.redhat.com/ubi8/nodejs-16:latest as build-step
WORKDIR /projects
ENV PATH /projects/node_modules/.bin:$PATH
COPY --chown=default:root ./frontend/* ./
COPY --chown=default:root ./frontend/src ./src
COPY --chown=default:root ./frontend/stories ./stories
COPY --chown=default:root ./frontend/.storybook .storybook
COPY --chown=default:root ./frontend/__mocks__ ./__mocks__
RUN npm install
RUN npm run build
FROM registry.access.redhat.com/ubi9/python-311:1-62
WORKDIR /projects
#RUN mkdir -p frontend
COPY --from=build-step /projects/dist ./frontend/dist
# By default, listen on port 8080
EXPOSE 8080/tcp
ENV FLASK_PORT=8080
# Set the working directory in the container
#WORKDIR /projects
# Copy the dependencies file to the working directory
COPY requirements.txt .
# Install any dependencies
RUN pip install -r requirements.txt
# Copy the content of the local src directory to the working directory
COPY . .
# Specify the command to run on container start
CMD ["gunicorn","--config", "python:gunicorn_config", "app:app"]