-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from AutomatingSciencePipeline/development
Restore Java Functionality
- Loading branch information
Showing
8 changed files
with
129 additions
and
76 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
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
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
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,59 +1,59 @@ | ||
FROM node:20.6 AS base | ||
# FROM node:20.6 AS base | ||
|
||
WORKDIR /app | ||
# WORKDIR /app | ||
|
||
COPY . /app | ||
# COPY . /app | ||
|
||
RUN npm install | ||
# RUN npm install | ||
|
||
RUN npm run build | ||
# RUN npm run build | ||
|
||
EXPOSE $FRONTEND_WEBSERVER_PORT | ||
# EXPOSE $FRONTEND_WEBSERVER_PORT | ||
|
||
CMD ["npm", "start"] | ||
# CMD ["npm", "start"] | ||
|
||
# FROM node:20-alpine AS base | ||
FROM node:20-alpine AS base | ||
|
||
# FROM base AS deps | ||
FROM base AS deps | ||
|
||
# RUN apk add --no-cache libc6-compat | ||
# WORKDIR /app | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
||
# COPY package.json ./ | ||
COPY package.json ./ | ||
|
||
# RUN npm update && npm install | ||
RUN npm update && npm install | ||
|
||
# # Install this to optimize images | ||
# RUN npm i sharp | ||
# Install this to optimize images | ||
RUN npm i sharp | ||
|
||
# # If you want yarn update and install uncomment the bellow | ||
# If you want yarn update and install uncomment the bellow | ||
|
||
# # RUN yarn install && yarn upgrade | ||
# RUN yarn install && yarn upgrade | ||
|
||
# FROM base AS builder | ||
# WORKDIR /app | ||
# COPY --from=deps /app/node_modules ./node_modules | ||
# COPY . . | ||
FROM base AS builder | ||
WORKDIR /app | ||
COPY --from=deps /app/node_modules ./node_modules | ||
COPY . . | ||
|
||
# RUN npm run build | ||
RUN npm run build | ||
|
||
# FROM base AS runner | ||
# WORKDIR /app | ||
FROM base AS runner | ||
WORKDIR /app | ||
|
||
# ENV NODE_ENV=production | ||
# RUN addgroup --system --gid 1001 nodejs | ||
# RUN adduser --system --uid 1001 nextjs | ||
ENV NODE_ENV=production | ||
RUN addgroup --system --gid 1001 nodejs | ||
RUN adduser --system --uid 1001 nextjs | ||
|
||
# COPY --from=builder /app/public ./public | ||
COPY --from=builder /app/public ./public | ||
|
||
# RUN mkdir .next | ||
# RUN chown nextjs:nodejs .next | ||
RUN mkdir .next | ||
RUN chown nextjs:nodejs .next | ||
|
||
# COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ | ||
# COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static | ||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ | ||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static | ||
|
||
# USER nextjs | ||
USER nextjs | ||
|
||
# EXPOSE $FRONTEND_WEBSERVER_PORT | ||
EXPOSE $FRONTEND_WEBSERVER_PORT | ||
|
||
# CMD ["node", "server.js"] | ||
CMD ["node", "server.js"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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