Skip to content

Instantly share code, notes, and snippets.

FROM node:10.15.3-alpine
RUN mkdir /myapp
WORKDIR /myapp
RUN cd /myapp
COPY service_a/package.json .
RUN npm install
EXPOSE 3000
CMD ["./dev-start.sh"]
var express = require("express");
var router = express.Router();
var axios = require("axios");
var mysql = require("mysql");
/* GET home page. */
router.get("/", function (req, res, next) {
res.render("index", { title: "Express" });
});
version: "3"
services:
service_a:
build:
dockerfile: service_a/Dockerfile
context: .
volumes:
- ./service_a:/myapp
ports:
- "8080:3000"
#para {
color: black
}
.main p {
color: green;
}
div p {
color: blue;
.main p {
color: green;
}
div p {
color: blue;
}
div p {
color: red
}
p {
color: blue;
}
p {
color: red
}
p {
color: blue;
}
<html>
<head>
<title>CSS Specificity</title>
</head>
<body>
<div class="main">
<p id="para">This is my first para</p>
</div>
import express from 'express';
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
export default router;
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express();