Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
carro-summary-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vinod Bangera
carro-summary-fe
Commits
4db9a52c
Commit
4db9a52c
authored
1 year ago
by
Vinod Bangera
Browse files
Options
Downloads
Patches
Plain Diff
Delete Dockerfile
parent
dd8b3e74
Branches
dev
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+0
-32
0 additions, 32 deletions
Dockerfile
with
0 additions
and
32 deletions
Dockerfile
deleted
100644 → 0
+
0
−
32
View file @
dd8b3e74
FROM
node:18-alpine
as
react-build
# Create app directory
WORKDIR
/usr/src/app
# Install app dependencies
COPY
package*.json ./
# Bundle app source
COPY
. .
# Install dependencies
RUN
yarn
# Build
RUN
yarn build
# Environment
FROM
nginx:alpine
COPY
nginx.conf /etc/nginx/conf.d/configfile.template
COPY
--from=react-build /usr/src/app/build /usr/share/nginx/html
ENV
PORT 3000
ENV
HOST 0.0.0.0
# Expose port 3000
EXPOSE
3000
# Run the app
# CMD [ "npm", "start" ]
CMD
sh -c "envsubst '\$PORT' < /etc/nginx/conf.d/configfile.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment