Compare commits
2 Commits
0c9fc19729
...
9be370e7d9
Author | SHA1 | Date | |
---|---|---|---|
9be370e7d9 | |||
f018204482 |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
npm-debug.log
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM node:16.8
|
||||||
|
|
||||||
|
WORKDIR /usr/src/minecraft-website
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm run gulp sass
|
||||||
|
|
||||||
|
# expose node_modules as a volume so it stays within the container
|
||||||
|
VOLUME node_modules
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "npm", "run", "server" ]
|
@ -31,8 +31,8 @@ table
|
|||||||
width: 100%
|
width: 100%
|
||||||
max-height: 100%
|
max-height: 100%
|
||||||
// Add blur effect
|
// Add blur effect
|
||||||
filter: blur(5px) grayscale(30%) brightness(85%)
|
filter: blur(5px) grayscale(30%) brightness(95%)
|
||||||
-webkit-filter: blur(5px) grayscale(30%) brightness(85%)
|
-webkit-filter: blur(5px) grayscale(30%) brightness(95%)
|
||||||
|
|
||||||
#main-container
|
#main-container
|
||||||
max-width: 1050px
|
max-width: 1050px
|
||||||
|
3
bin/docker-build-dev.sh
Executable file
3
bin/docker-build-dev.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker build -t minecraft-website .
|
3
bin/docker-run-dev.sh
Executable file
3
bin/docker-run-dev.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker run -d --rm -p 3000:3000 -v "$(pwd)":/usr/src/minecraft-website --name minecraft-website minecraft-website
|
Loading…
Reference in New Issue
Block a user