Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Commits
c575554c
Verified
Commit
c575554c
authored
5 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Patches
Plain Diff
Fix Docker dev setup
parent
f9227c1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-1
3 additions, 1 deletion
Dockerfile
docker/front.conf
+17
-0
17 additions, 0 deletions
docker/front.conf
with
20 additions
and
1 deletion
Dockerfile
+
3
−
1
View file @
c575554c
...
...
@@ -11,6 +11,8 @@ FROM nginx:alpine
EXPOSE
80
COPY
--from=build /src/dist /usr/share/nginx/html
RUN
rm
/etc/nginx/conf.d/default.conf
&&
mkdir
/frontend
COPY
docker/front.conf /etc/nginx/conf.d/front.conf
COPY
--from=build /src/dist /frontend
CMD
nginx -g 'daemon off;'
This diff is collapsed.
Click to expand it.
docker/front.conf
0 → 100644
+
17
−
0
View file @
c575554c
server
{
listen
80
;
gzip
on
;
gunzip
on
;
gzip_disable
"msie6"
;
gzip_types
"*"
;
# Look for .gz files in the directory
gzip_static
on
;
location
/ {
root
/
frontend
;
index
index
.
html
;
try_files
$
uri
$
uri
/ /
index
.
html
=
404
;
}
}
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