Merge branch 'feature' of https://github.com/pawelmalak/flame into feature
This commit is contained in:
commit
7febd59ad7
2 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM node:14-alpine
|
FROM node:14-alpine as builder
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache nano curl
|
RUN apk update && apk add --no-cache nano curl
|
||||||
|
|
||||||
|
@ -18,6 +18,12 @@ RUN mkdir -p ./public ./data \
|
||||||
&& mv ./client/build/* ./public \
|
&& mv ./client/build/* ./public \
|
||||||
&& rm -rf ./client
|
&& rm -rf ./client
|
||||||
|
|
||||||
|
FROM node:14-alpine
|
||||||
|
|
||||||
|
COPY --from=builder /app /app
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 5005
|
EXPOSE 5005
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:14-alpine
|
FROM node:14-alpine as builder
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache nano curl
|
RUN apk update && apk add --no-cache nano curl
|
||||||
|
|
||||||
|
@ -20,8 +20,14 @@ RUN mkdir -p ./public ./data \
|
||||||
&& rm -rf ./client \
|
&& rm -rf ./client \
|
||||||
&& apk del build-dependencies
|
&& apk del build-dependencies
|
||||||
|
|
||||||
|
FROM node:14-alpine
|
||||||
|
|
||||||
|
COPY --from=builder /app /app
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 5005
|
EXPOSE 5005
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|
Loading…
Reference in a new issue