19 lines
312 B
Docker
19 lines
312 B
Docker
# Dockerfile.update
|
|
FROM node:14
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json
|
|
COPY package*.json ./
|
|
ENV REACT_APP_API_URL=http://zbox.local:8080
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the application code
|
|
COPY . .
|
|
COPY .env .
|
|
|
|
CMD ["npm", "run", "build"]
|