flame/Dockerfile

26 lines
396 B
Text
Raw Normal View History

FROM node:14-alpine
RUN apk update && apk add --no-cache nano curl
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
RUN mkdir -p ./public ./data \
&& cd ./client \
2021-06-23 02:54:24 +00:00
&& npm install --production \
&& npm run build \
&& cd .. \
&& mv ./client/build/* ./public \
&& rm -rf ./client
EXPOSE 5005
ENV NODE_ENV=production
2021-06-23 02:54:24 +00:00
CMD ["node", "server.js"]