22 lines
323 B
Docker
22 lines
323 B
Docker
FROM node:12.10.0-alpine
|
|
|
|
LABEL maintainer="Liyas Thomas (liyascthomas@gmail.com)"
|
|
|
|
# Add git as the prebuild target requires it to parse version information
|
|
RUN apk add --update --no-cache \
|
|
git
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["npm", "run", "start"]
|