Skip to content
Merged
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
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM node:18.15.0-alpine AS base

# Install tini
RUN apk add --no-cache tini

# Set the working directory
WORKDIR /app

# Use tini as entrypoint to handle killing processes
ENTRYPOINT ["/sbin/tini", "--"]

# Install build dependencies
RUN apk --no-cache --virtual build-dependencies add g++ make py3-pip

Expand Down Expand Up @@ -38,6 +44,9 @@ CMD [ "yarn", "dev:worker" ]
# Production stage
FROM node:18.15.0-alpine AS prod

# Install tini
RUN apk add --no-cache tini

# Set the working directory
WORKDIR /app

Expand All @@ -61,4 +70,6 @@ RUN yarn install --production=true --frozen-lockfile --network-timeout 1000000
# Clean up build dependencies
RUN apk del build-dependencies

# Use tini as entrypoint to handle killing processes
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "yarn", "start"]