Skip to content

Commit

Permalink
perf: enhance dockerfile caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffroy Empain committed Dec 11, 2020
1 parent 0532af2 commit 34a3fd2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker/unified.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ FROM getmeli/ui:${UI_VERSION} AS ui

FROM caddy:2

LABEL maintainer="meli.sh"

RUN apk add --no-cache \
bash \
nodejs \
&& mkdir -p /app/api/migrations

# caddy
COPY ./docker/files/entrypoint.sh /entrypoint.sh
RUN mkdir -p /app/api/migrations
COPY ./docker/files/caddy-config.json /etc/caddy/config.json
# ui
COPY --from=ui /www /app/ui
Expand All @@ -15,16 +23,8 @@ COPY ./build /app/api
COPY ./node_modules /app/api/node_modules
COPY ./migrate-mongo-config.js /app/api

RUN chmod +x /entrypoint.sh \
&& apk add --no-cache \
bash \
nodejs \
&& mkdir -p /app/api/migrations

WORKDIR /app/api

LABEL maintainer="meli.sh"

ENV MELI_URL_INTERNAL=http://localhost:3001
ENV MELI_UI_DIR=/app/ui

Expand Down

0 comments on commit 34a3fd2

Please sign in to comment.