Part3
This commit is contained in:
parent
1a5357e1df
commit
e98d78b444
16 changed files with 109 additions and 8 deletions
11
Part3/Exercise05/Dockerfile_front
Normal file
11
Part3/Exercise05/Dockerfile_front
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM node:16.19
|
||||
EXPOSE 5000
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
COPY . .
|
||||
ENV REACT_APP_BACKEND_URL=http://devops:8080
|
||||
RUN npm install && npm run build
|
||||
RUN npm install -g serve
|
||||
RUN useradd -m appuser
|
||||
USER appuser
|
||||
CMD ["serve", "-s", "-l", "5000", "build"]
|
Reference in a new issue