Skip to content

Commit

Permalink
feat(authentication): change node to slim version
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMi committed Mar 6, 2023
1 parent c46dfd2 commit e0f54f4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Should be the specific version of `node:slim`.
# `sqitch` requires at least `buster`.
FROM node:19.7.0 AS development
FROM node:19.7.0-slim AS development

COPY ./docker/entrypoint.sh /usr/local/bin/

Expand Down Expand Up @@ -33,7 +33,7 @@ CMD ["pnpm", "run", "dev"]
# Prepare Nuxt.

# Should be the specific version of `node:slim`.
FROM node:19.7.0 AS prepare
FROM node:19.7.0-slim AS prepare

WORKDIR /srv/app/

Expand All @@ -54,7 +54,7 @@ RUN pnpm install --offline \

# Should be the specific version of `node:slim`.
# Could be the specific version of `node:alpine`, but the `prepare` stage uses slim too.
FROM node:19.7.0 AS build
FROM node:19.7.0-slim AS build

ARG CI=false
ENV CI ${CI}
Expand All @@ -75,7 +75,7 @@ RUN corepack enable && \

# Should be the specific version of `node:slim`.
# Could be the specific version of `node:alpine`, but the `prepare` stage uses slim too.
FROM node:19.7.0 AS lint
FROM node:19.7.0-slim AS lint

WORKDIR /srv/app/

Expand All @@ -90,7 +90,7 @@ RUN corepack enable && \

# Should be the specific version of `node:slim`.
# Could be the specific version of `node:alpine`, but the `prepare` stage uses slim too.
FROM node:19.7.0 AS test-unit
FROM node:19.7.0-slim AS test-unit

WORKDIR /srv/app/

Expand Down Expand Up @@ -165,7 +165,7 @@ RUN pnpm test:integration:prod

# Should be the specific version of `node:slim`.
# Could be the specific version of `node:alpine`, but the `prepare` stage uses slim too.
FROM node:19.7.0 AS collect
FROM node:19.7.0-slim AS collect

WORKDIR /srv/app/

Expand All @@ -182,7 +182,7 @@ COPY --from=test-integration-prod /srv/app/package.json /tmp/package.json

# Should be the specific version of `node:slim`.
# `sqitch` requires at least `buster`.
FROM node:19.7.0 AS production
FROM node:19.7.0-slim AS production

ENV NODE_ENV=production

Expand Down

0 comments on commit e0f54f4

Please sign in to comment.