Skip to content

Commit

Permalink
Merge pull request #8 from allaboutapps/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
gottfired authored Aug 14, 2024
2 parents bdd3a4a + 4459799 commit d03ba8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
9 changes: 0 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,6 @@ pipeline:
# DEPLOYMENT PROD --
# ---------------------

# autodeploy if it hits the branch
"deploy ${DRONE_COMMIT_SHA:0:10} to ${K8S_DEPLOY_NS_PROD} (auto)":
<<: *K8S_DEPLOY_SETTINGS
namespace: ${K8S_DEPLOY_NS_PROD}
mgmt_deployment_yaml: namespaces/${K8S_DEPLOY_NS_PROD}/webapp.deployment.yaml
when:
branch: main
event: *WHEN_BUILD_EVENT

# promote main through "drone deploy <repo> <build> <env>" or "woodpecker-cli deploy <repo> <build> <env>"
"deploy ${DRONE_COMMIT_SHA:0:10} to ${K8S_DEPLOY_NS_PROD} (promote)":
<<: *K8S_DEPLOY_SETTINGS
Expand Down
19 changes: 3 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
FROM node:20-alpine AS base

# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache \
autoconf \
automake \
bash \
g++ \
libc6-compat \
libjpeg-turbo-dev \
libpng-dev \
make \
nasm
FROM node:20 AS base

WORKDIR /app

# Install dependencies based on the preferred package manager
Expand All @@ -28,7 +15,7 @@ RUN \
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=base /app/node_modules ./node_modules
COPY . .

# Next.js collects completely anonymous telemetry data about general usage.
Expand Down

0 comments on commit d03ba8f

Please sign in to comment.