Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
hotfix(build): Update node image and use python3
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 committed Jan 16, 2023
1 parent 2e08832 commit 3fa0d53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# Service containers to run with `runner-job`
services:
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
FROM node:14.19-slim as builder
FROM node:16.19-slim as builder
ENV NODE_ENV=development
RUN apt-get update \
&& apt-get install -y build-essential python \
&& apt-get install -y build-essential python3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app/

COPY ["package.json", "package-lock.json*", "./"]
RUN npm ci --silent
RUN npm ci
COPY . .
RUN npm run build

FROM node:14.19-slim as runner
FROM node:16.19-slim as runner
WORKDIR /usr/app/
COPY ["package.json", "package-lock.json*", "./"]
ENV NODE_ENV=production
RUN apt-get update \
&& apt-get install -y build-essential python \
&& apt-get install -y build-essential python3 \
&& rm -rf /var/lib/apt/lists/*
RUN npm ci --silent
RUN npm ci
COPY --from=builder /usr/src/app/dist/ /usr/app/
COPY ./config/ /usr/app/config/
# Add Tini
Expand Down

0 comments on commit 3fa0d53

Please sign in to comment.