Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Docker images to use LTS version of Node.js #184 #203

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:12-alpine AS builder
# Using LTS version https://github.com/nodejs/release#release-schedule
FROM node:lts-alpine AS builder

# Create app directory
WORKDIR /app
Expand All @@ -18,8 +19,7 @@ COPY src ./src

RUN npm run build

# TODO use node-alpine when supported by prisma2 https://github.com/prisma/prisma2/issues/702
FROM node:12.18.4-alpine
FROM node:lts-alpine
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/dist ./dist
Expand Down
3 changes: 2 additions & 1 deletion prisma/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:12.18.4-alpine
# Using LTS version https://github.com/nodejs/release#release-schedule
FROM node:lts-alpine

RUN apk add --no-cache bash

Expand Down
Loading