.NET CORE APPLICATION PUBLISHING! A little DevOps – configuring Visual Studio for release on a Li...

Опубликовано: 19 Май 2026
на канале: CODE BLOG
42,450
2k

You'll learn how to publish a .NET Core web application to a Linux virtual private server (VPS) using Docker.
Veesp Server Rental: https://bit.ly/2FSWpjg

Docker Basics:    • Основы Docker. Что такое Докер и зачем он ...  

Follow me on social media for lots of interesting and useful information for developers:

VKontakte: https://vk.com/codeblog
Telegram: https://ttttt.me/codeblog

Support Kanata's development:
Donate: https://www.donationalerts.ru/r/shwanoff
Patreon:   / codeblog  

To make your application accessible to everyone, you need to publish it online. This can be done in a variety of ways: using your own computer, renting hosting or a VPS, or deploying to the cloud. We'll consider an option using Docker with a release on a virtual private server running Linux, or more specifically, Ubuntu 16.04 x64.

rm .ssh/known_hosts - remove previous SSH connections
ssh -l root 77.73.68.150 - connect to VPS

sudo apt update && sudo apt upgrade - install OS updates
sudo apt install linux-image-extra-$(uname -r) linux-image-extra-virtual - install additional kernel packages
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D - add Docker developer repository key
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' - add Docker developer repository
sudo apt update && apt-cache policy docker-engine - updated packet lists
sudo apt install -y docker-engine - install Docker
sudo usermod -aG docker $(whoami) - add user to docker group
sudo systemctl status docker - check docker service status

sudo iptables -L - check open ports

install required ports
sudo iptables -A INPUT -i lo -j ACCEPT
sudo iptables -A OUTPUT -o lo -j ACCEPT
sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

docker run -d -p 80:80/tcp shwanoff/helloworldcore
docker ps

By the way, my name is Vadim Shvanov, and I'm a professional .NET developer with over 8 years of experience and the author of this channel, CODE BLOG. I talk about IT technologies and am teaching this course on the C# language from scratch. In it, we'll cover the basic syntax of C#, as well as its practical application and specialized technologies such as ASP.NET, Core, MVC, Unity, WCF, WPF, data structures and algorithms, design patterns, computer science, software, and much more. It's important to me not only to demonstrate the practical application of C# but also to explain the basic idea and concepts of Computer Science. I use Visual Studio C# and Visual C# projects as my primary development tool.

C# Design Patterns Training Course:
   • Паттерны проектирования C#  

A detailed course on the C# programming language:
   • Преимущества и недостатки C# - Учим Шарп #1  

A detailed course on data structures in the C# programming language:
   • Связный список (linked list) - Структуры д...  

A detailed course on sorting algorithms in the C# programming language C#:
   • Сортировка пузырьком (bubble sort) - Алгор...  

Conversations about programming, motivation, and answers to IT questions:
   • Практика программирования. Какой проект сд...  

#programming #docker #vps #linux #deploy #dotnet #core #codeblog #ityoutubersru