mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 15:19:41 +02:00
33 lines
467 B
Text
33 lines
467 B
Text
|
FROM node:lts as builder
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN yarn install \
|
||
|
--prefer-offline \
|
||
|
--frozen-lockfile \
|
||
|
--non-interactive \
|
||
|
--production=false
|
||
|
|
||
|
RUN yarn build
|
||
|
|
||
|
RUN rm -rf node_modules && \
|
||
|
NODE_ENV=production yarn install \
|
||
|
--prefer-offline \
|
||
|
--pure-lockfile \
|
||
|
--non-interactive \
|
||
|
--production=true
|
||
|
|
||
|
FROM node:15-alpine
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
# copying caddy into image
|
||
|
COPY --from=builder /app .
|
||
|
|
||
|
ENV HOST 0.0.0.0
|
||
|
EXPOSE 3000
|
||
|
|
||
|
CMD [ "yarn", "start" ]
|