Skip to content

Commit 0b60bad

Browse files
fix: creates env in Dockerfile
1 parent 50ccd58 commit 0b60bad

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/dev-sttm-web-AutoDeployTrigger-20952253-f106-4264-a850-1a8fd6340281.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
# Allow manual trigger
1414
workflow_dispatch:
1515

16+
env:
17+
NODE_ENV: development
18+
1619
jobs:
1720
build-and-deploy:
1821
runs-on: ubuntu-latest

.github/workflows/sttm-web-container-AutoDeployTrigger-fe063408-abd2-49aa-a2a4-d66a6e18443b.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
# Allow manual trigger
1414
workflow_dispatch:
1515

16+
env:
17+
NODE_ENV: production
18+
1619
jobs:
1720
build-and-deploy:
1821
runs-on: ubuntu-latest

Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ FROM node:14.21.3
33
# Set working directory
44
WORKDIR /app
55

6-
# Add build argument for NODE_ENV
7-
ARG NODE_ENV=$NODE_ENV
8-
ENV NODE_ENV=$NODE_ENV
9-
10-
RUN echo "NODE_ENV is $NODE_ENV"
11-
126
# Install required packages for keyring
137
RUN apt-get update && apt-get install -y gnupg2 curl lsb-release
148

0 commit comments

Comments
 (0)