Skip to content

Commit 439accd

Browse files
committed
adjust dockerfile
1 parent 0112a39 commit 439accd

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
2-
FROM golang:1.14.2-alpine as builder1
1+
FROM golang:1.15.6-alpine as builder1
32

43
# Setting up environment for builder1
54
ENV GO111MODULE=on
65
WORKDIR /app/dmanager
76

87
# install required package(s)
9-
RUN apk --no-cache add ca-certificates git
8+
RUN apk --no-cache add ca-certificates git alpine-sdk
109

1110
# Copy dependency list
1211
COPY go.mod .

html/templates/Preview.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#editor {
7777
position: absolute;
7878
display: inline;
79-
overflow-y: auto;
79+
overflow-y: none;
8080
overflow-x: none;
8181
width: 100%;
8282
}
@@ -91,6 +91,7 @@
9191
position: absolute;
9292
bottom: 0;
9393
width: 100%;
94+
overflow-y: none;
9495
top: 100px;
9596
overflow-x: none;
9697
z-index: 0;
@@ -115,7 +116,7 @@
115116
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
116117
}
117118

118-
body .ace_editor:hover .ace_scrollbar {
119+
body .ace_editor .ace_scrollbar {
119120
display: none;
120121
}
121122
</style>
@@ -146,17 +147,10 @@
146147

147148
$('#editor').height(newHeight.toString() + "px");
148149
$('#editor-section').height(newHeight.toString() + "px");
149-
150-
// This call is required for the editor to fix all of
151-
// its inner structure for adapting to a change in size
152150
editor.resize();
153151
};
154152

155-
// Set initial size to match initial content
156153
heightUpdateFunction();
157-
158-
// Whenever a change happens inside the ACE editor, update
159-
// the size again
160154
editor.getSession().on('change', heightUpdateFunction);
161155
}, 10);
162156
});

0 commit comments

Comments
 (0)