Files
2023-02-20 18:30:08 +01:00

37 lines
686 B
Plaintext

# Build environment
FROM node:14.17.6-alpine3.14 as build
WORKDIR /app
COPY package*.json ./
RUN npm install --silent
COPY . .
# set working directory
WORKDIR /app
# Copies package.json and package-lock.json to Docker environment
COPY package*.json ./
# Installs all node packages
RUN npm install
# Copies everything over to Docker environment
COPY . .
ENV REACT_APP_API_URL="https://backend.signlanguagetool.secureservers.be"
# Build for production.
RUN npm run build --production
# Install `serve` to run the application.
RUN npm install -g serve
# Uses port which is used by the actual application
EXPOSE 5000
# Run application
#CMD [ "npm", "start" ]
CMD serve -s build