Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Switch to Node Alpine (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored Apr 28, 2021
1 parent fb29c10 commit 35cfb85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM node:14.8.0-stretch as builder
FROM node:14.16-alpine as builder
WORKDIR /usr/build

# install git & openssh to fetch github packages
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh

# Install app dependencies
COPY package*.json ./
RUN npm install --production
Expand All @@ -12,7 +16,7 @@ RUN npm run build-production


# Build final image
FROM node:14.8.0-slim
FROM node:14.16-alpine
WORKDIR /usr/app

COPY --from=builder ./usr/build ./
Expand Down
7 changes: 5 additions & 2 deletions docker/buildkite/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM node:14.8.0-stretch

FROM node:14.16-alpine
WORKDIR /usr/temporal-web

# install git & openssh to fetch github packages
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh

ENV NODE_ENV=development

# Install app dependencies
Expand Down

0 comments on commit 35cfb85

Please sign in to comment.