21 lines
321 B
Docker
21 lines
321 B
Docker
|
# Dockerfile.create
|
||
|
FROM node:14 AS builder
|
||
|
|
||
|
# Set working directory
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Copy package.json and package-lock.json
|
||
|
COPY package*.json ./
|
||
|
|
||
|
# Install dependencies
|
||
|
RUN npm install
|
||
|
RUN npm install -g serve
|
||
|
|
||
|
# Copy the rest of the application code
|
||
|
COPY . .
|
||
|
COPY .env .
|
||
|
|
||
|
RUN npm build .
|
||
|
|
||
|
CMD ["serve", "-s", "build"]
|