Skip to content

Commit

Permalink
Adiciona build como padrão no docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
lpirola committed Jul 10, 2024
1 parent 681c486 commit 9885b64
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 24,874 deletions.
26 changes: 13 additions & 13 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

# Adapted from https://github.com/dunglas/symfony-docker

# FROM node:20 as frontend_build

# # user: "node"
# WORKDIR /app
# # environment:
# ENV NODE_ENV=development
# COPY . /app
# WORKDIR /app/mapas/src
# RUN npm i -g pnpm
# RUN pnpm i
# RUN pnpm run dev
FROM node:20 as frontend_build

# user: "node"
WORKDIR /app
# environment:
ENV NODE_ENV=development
COPY --link . /app
WORKDIR /app/mapas/src
RUN npm i -g pnpm
RUN pnpm i

Check failure on line 14 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Lint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
RUN pnpm run dev

Check failure on line 15 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Lint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

# Versions
FROM dunglas/frankenphp:1-php8.3 AS frankenphp_upstream
Expand All @@ -29,7 +29,7 @@ FROM frankenphp_upstream AS frankenphp_base
WORKDIR /app

# COPY --link . /app
# COPY --link --from=frontend_build /app /app
COPY --link --from=frontend_build /app /app

# persistent / runtime deps
# hadolint ignore=DL3008
Expand Down Expand Up @@ -67,7 +67,7 @@ FROM frankenphp_base AS frankenphp_dev

ENV APP_ENV=dev XDEBUG_MODE=off
# VOLUME /app/var/
COPY --link . /app
# COPY --link . /app

RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"

Expand Down
Loading

0 comments on commit 9885b64

Please sign in to comment.