Skip to content

Commit

Permalink
feat(actions): 🎉 add actions and update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Mar 18, 2024
1 parent d561f5f commit 2371f30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,15 @@ ARG KEYCLOAK_URL
ARG KEYCLOAK_REALM
ARG KEYCLOAK_CLIENT_ID

COPY . /app
WORKDIR /app
RUN npm install -s
RUN npm run build

FROM node:alpine as production-stage

COPY --from=build-stage /app/.next /app/.next
WORKDIR /app

ENV BACKEND_URL=$BACKEND_URL
ENV KEYCLOAK_URL=$KEYCLOAK_URL
ENV KEYCLOAK_REALM=$KEYCLOAK_REALM
ENV KEYCLOAK_CLIENT_ID=$KEYCLOAK_CLIENT_ID

COPY . /app
WORKDIR /app
RUN npm install -s
RUN npm run build

CMD ["npm", "start"]
EXPOSE 3000
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "demo-ui",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 2371f30

Please sign in to comment.