1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-06 14:05:21 +02:00

fix recipe static routes

This commit is contained in:
hay-kot 2021-08-09 16:19:23 -08:00
parent 625dbcdea5
commit 8710dad727
11 changed files with 54 additions and 29 deletions

View file

@ -4,17 +4,6 @@ WORKDIR /app
COPY . .
# Install Caddy
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
curl \
apt-transport-https \
&& curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | apt-key add - \
&& curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
caddy
RUN yarn install \
--prefer-offline \
--frozen-lockfile \
@ -35,13 +24,9 @@ FROM node:15-alpine
WORKDIR /app
# copying caddy into image
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY ./Caddyfile /app
COPY --from=builder /app .
ENV HOST 0.0.0.0
EXPOSE 3000
RUN ["caddy", "start", "--config", "/app/Caddyfile"]
CMD [ "yarn", "start" ]