Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 8, 2024
1 parent 4b3f60b commit 93423f7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
# syntax=docker/dockerfile:1

#FROM node:latest
# cacheble npm install stage that only reruns if package.json actually changes.
FROM node:22 AS builder

#build tools for alpine
# RUN apk --no-cache add python3
# RUN apk --no-cache add make
# RUN apk --no-cache add gcc
# RUN apk --no-cache add musl-dev
# RUN apk --no-cache add g++

ENV NODE_ENV=production

WORKDIR /app

COPY ["package.json", "package-lock.json*", "./"]


RUN NODE_ENV=development npm install
RUN NODE_ENV=production npm install

COPY . .

Expand Down

0 comments on commit 93423f7

Please sign in to comment.