oliverdavies.uk/tools/docker/images/Dockerfile

22 lines
427 B
Docker
Raw Normal View History

2021-07-03 22:00:45 +00:00
FROM opdavies/sculpin-serve AS app
WORKDIR /app
COPY composer.* ./
RUN composer install
COPY app app
COPY source source
RUN sculpin generate -e prod
FROM node:14 AS assets
WORKDIR /node
COPY package.json .
COPY package-lock.json .
RUN npm ci
COPY . .
RUN npm run production
FROM nginx AS nginx
COPY tools/docker/images/nginx/root /
WORKDIR /app
COPY --from=app /app/output_prod ./
COPY --from=assets /node/source/build build