Skip to content

Instantly share code, notes, and snippets.

View coolbung's full-sized avatar

Ashwin Date coolbung

View GitHub Profile
#!/usr/bin/env bash
#* @package Component Name
#* @copyright Copyright (C) 2009 2014 Techjoomla, Tekdi Technologies Pvt. Ltd. All rights reserved.
#* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#* @link http://www.techjoomla.com
# This Script can be used to maintain your demos and refresh them periodically
# It can also be used to create replication instances quickly for development and sync them with live or the other way round
# Another use of the script is for code deployments from local to live
# Currently this is for Joomla but you could potentially fork it for any database of file based application
# Fair Warning : Note that you are playing with your live server files and Database. So make sure you know what you are doing !
@coolbung
coolbung / Dockerfile
Created February 9, 2022 02:47 — forked from nzvtrk/Dockerfile
Nest.js multi-stage build dockerfile + docker-compose with postgres & migrations
FROM node:12.14.1-alpine AS build
# If you have troubles with node-gyp use should install these dependencies
RUN apk add g++ make python
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . ./
# build js & remove devDependencies from node_modules