Files
detlef-ui/Dockerfile
Michael Debenjak f2fdff5a1a
All checks were successful
continuous-integration/drone/push Build is passing
Try different server
2023-02-28 14:39:06 +01:00

24 lines
398 B
Docker

FROM node:latest
# Create app directory
RUN mkdir -p /src/app
WORKDIR /src/app
# to make npm test run only once non-interactively
ENV CI=true
# Install app dependencies
COPY package.json /src/app/
RUN npm install
RUN npm install -g serve
# Bundle app source
COPY . /src/app
# Build and optimize react app
RUN npm run build
EXPOSE 3000
# defined in package.json
CMD [ "serve", "-s", "build" ]