Spaces:
Sleeping
Sleeping
Download snippets/dockerfile.code-snippets from gvatsal60/github-test: direct link, hf CLI and curl.
- Browser
- Download file 3.53 kB
-
https://huggingface.co/spaces/gvatsal60/github-test/resolve/main/snippets/dockerfile.code-snippets
- Command line
-
hf download hf://spaces/gvatsal60/github-test/snippets/dockerfile.code-snippets
-
curl -L -o dockerfile.code-snippets https://huggingface.co/spaces/gvatsal60/github-test/resolve/main/snippets/dockerfile.code-snippets
3.53 kB
| /** | |
| * @file dockerfile.code-snippets | |
| * @brief Contains custom code snippets for Dockerfile | |
| * | |
| * This file provides a collection of code snippets designed to facilitate rapid | |
| * development by offering quick access to commonly used patterns and boilerplate | |
| * code. The snippets include function templates, common data structures, and | |
| * useful macros. | |
| * | |
| * To utilize these snippets, integrate this file into your IDE's snippet manager | |
| * or configuration. Feel free to modify and expand the snippets to meet your | |
| * specific coding requirements. | |
| */ | |
| { | |
| /*************************************************************************************** | |
| * File Template | |
| **************************************************************************************/ | |
| "Dockerfile File Template": { | |
| "scope": "dockerfile", | |
| "prefix": "template", | |
| "body": [ | |
| "# ##########################################################################", | |
| "# File: ${TM_FILENAME}", | |
| "# Author: ${USER}", | |
| "# Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}", | |
| "# Description: Brief description of the Dockerfile purpose.", | |
| "# ##########################################################################", | |
| "", | |
| "# ##########################################################################", | |
| "# License", | |
| "# ##########################################################################", | |
| "# This Dockerfile is licensed under the Apache 2.0 License.", | |
| "# License information should be updated as necessary.", | |
| "# ##########################################################################", | |
| "", | |
| "# ##########################################################################", | |
| "# Base Image", | |
| "# ##########################################################################", | |
| "FROM ", | |
| "", | |
| "# ##########################################################################", | |
| "# Maintainer", | |
| "# ##########################################################################", | |
| "LABEL maintainer=\"${USER}\"", | |
| "", | |
| "# ##########################################################################", | |
| "# Install Dependencies", | |
| "# ##########################################################################", | |
| "", | |
| "# ##########################################################################", | |
| "# Copy Files", | |
| "# ##########################################################################", | |
| "", | |
| "# ##########################################################################", | |
| "# Set Working Directory", | |
| "# ##########################################################################", | |
| "WORKDIR /", | |
| "", | |
| "# ##########################################################################", | |
| "# Expose Port", | |
| "# ##########################################################################", | |
| "EXPOSE 8080", | |
| "", | |
| "# ##########################################################################", | |
| "# Command to Run", | |
| "# ##########################################################################", | |
| "CMD [\"/bin/bash\"]", | |
| "" | |
| ], | |
| "description": "dockerfile file template", | |
| "isFileTemplate": true | |
| } | |
| /*************************************************************************************** | |
| * Debugging | |
| **************************************************************************************/ | |
| // TODO | |
| } | |