-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12d9ae2
commit fc39c32
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax = docker/dockerfile:1.4 | ||
FROM node:20-slim as builder | ||
FROM node:20-alpine as builder | ||
|
||
WORKDIR /opt/digitransit-ui | ||
|
||
|
@@ -12,7 +12,7 @@ ENV \ | |
# install dependencies for npm packages | ||
RUN \ | ||
# required for sharp, which builds libvips using node-gyp | ||
apt install python3 make g++ vips-dev | ||
apk add --no-cache python3 make g++ vips-dev | ||
|
||
COPY .yarnrc.yml package.json yarn.lock lerna.json ./ | ||
COPY .yarn ./.yarn | ||
|
@@ -55,7 +55,7 @@ RUN \ | |
RUN \ | ||
rm -rf static docs .cache | ||
|
||
FROM node:20-slim | ||
FROM node:20-alpine | ||
LABEL org.opencontainers.image.title="digitransit-ui" | ||
LABEL org.opencontainers.image.description="open nationwide journey planning platform" | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
@@ -104,9 +104,9 @@ ENV \ | |
ASSET_URL='' \ | ||
STATIC_MESSAGE_URL='' | ||
|
||
RUN apt install curl | ||
RUN apk add --no-cache curl bash | ||
HEALTHCHECK \ | ||
--interval=5s --timeout=3s --retries=3 --start-period=5s \ | ||
CMD curl -fsSLI "http://localhost:$PORT/" || exit 1 | ||
|
||
CMD yarn run dev | ||
CMD yarn dev |