Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchelin committed Sep 13, 2024
1 parent b6aad74 commit e076f10
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Env setup
ARG NODE_VERSION=22.8.0

FROM node:${NODE_VERSION}-alpine as base
FROM node:${NODE_VERSION}-alpine AS base

# By default, if PORT is not defined, Nuxt uses port 3000
ARG PORT=3000
Expand All @@ -11,15 +11,14 @@ ENV NODE_ENV=production
WORKDIR /src

# Build
FROM base as build
FROM base AS build

COPY --link package.json package-lock.json .
COPY --link package.json package-lock.json ./
RUN npm install --production=false

COPY --link . .

RUN npm run build
RUN npm prune
RUN npm run build && npm prune

# Run
FROM base
Expand Down

0 comments on commit e076f10

Please sign in to comment.