FitTrackee/fittrackee_client/Dockerfile

24 lines
512 B
Docker
Raw Normal View History

2023-11-11 14:32:55 +01:00
FROM node:18
2021-11-06 22:18:38 +01:00
MAINTAINER SamR1@users.noreply.github.com
# set working directory
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
# add `/usr/src/app/node_modules/.bin` to $PATH
ENV PATH /usr/src/app/node_modules/.bin:$PATH
# add environment variables
ARG NODE_ENV
2023-11-15 14:57:27 +01:00
ARG VITE_APP_API_URL
2021-11-06 22:18:38 +01:00
ENV NODE_ENV $NODE_ENV
2023-11-15 14:57:27 +01:00
ENV VITE_APP_API_URL $VITE_APP_API_URL
2021-11-06 22:18:38 +01:00
# install dependencies
COPY package.json /usr/src/app/package.json
2023-11-15 14:57:27 +01:00
COPY yarn.lock /usr/src/app/yarn.lock
2021-11-06 22:18:38 +01:00
RUN yarn install --silent
# copy source
COPY . /usr/src/app/