1
0
Fork 0
This commit is contained in:
Vili Sinervä 2023-03-17 12:43:43 +02:00
parent 1a5357e1df
commit e98d78b444
16 changed files with 109 additions and 8 deletions

View 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"]